Details
-
Bug
-
Resolution: Fixed
-
P4
-
11
-
b19
-
Verified
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8205831 | 11.0.1 | Jan Lahoda | P4 | Resolved | Fixed | team |
Description
jdeprscan will need to be updated to to be able to run successfully after the Java EE and CORBA modules are deleted.
The processSelf method adds the java.se.ee and jdk.xml.bind modules:
——————
boolean processSelf(Collection<String> classes) throws IOException {
options.add("--add-modules");
options.add("java.se.ee,jdk.xml.bind"); // TODO why jdk.xml.bind?
if (classes.isEmpty()) {
Path modules = FileSystems.getFileSystem(URI.create("jrt:/"))
.getPath("/modules");
// names are /modules/<modulename>/pkg/.../Classname.class
try (Stream<Path> paths = Files.walk(modules)) {
Stream<String> files =
paths.filter(p -> p.getNameCount() > 2)
.map(p -> p.subpath(1, p.getNameCount()))
.map(Path::toString);
return doModularFileNames(files);
}
} else {
return doClassNames(classes);
}
}
-------------------
The following tests currently fail due to the removal of the Java EE and CORBA modules:
make run-test TEST="open/test/langtools/tools/jdeprscan/tests/jdk/jdeprscan/TestNotFound.java”
make run-test TEST="open/test/langtools/tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java"
The processSelf method adds the java.se.ee and jdk.xml.bind modules:
——————
boolean processSelf(Collection<String> classes) throws IOException {
options.add("--add-modules");
options.add("java.se.ee,jdk.xml.bind"); // TODO why jdk.xml.bind?
if (classes.isEmpty()) {
Path modules = FileSystems.getFileSystem(URI.create("jrt:/"))
.getPath("/modules");
// names are /modules/<modulename>/pkg/.../Classname.class
try (Stream<Path> paths = Files.walk(modules)) {
Stream<String> files =
paths.filter(p -> p.getNameCount() > 2)
.map(p -> p.subpath(1, p.getNameCount()))
.map(Path::toString);
return doModularFileNames(files);
}
} else {
return doClassNames(classes);
}
}
-------------------
The following tests currently fail due to the removal of the Java EE and CORBA modules:
make run-test TEST="open/test/langtools/tools/jdeprscan/tests/jdk/jdeprscan/TestNotFound.java”
make run-test TEST="open/test/langtools/tools/jdeprscan/tests/jdk/jdeprscan/TestRelease.java"
Attachments
Issue Links
- backported by
-
JDK-8205831 jdeprscan will need updates to deal with the removal of the Java EE modules
- Resolved
- relates to
-
JDK-8206330 Revisit com/sun/jdi/RedefineCrossEvent.java
- Resolved
-
JDK-8196479 jdeprscan test TestRelease.java is broken by JDK 11 changes
- Resolved
-
JDK-8205157 jdeprscan reports "error: module not found: java.se.ee"
- Resolved
-
JDK-8189188 JEP 320: Remove the Java EE and CORBA Modules
- Closed
-
JDK-8190378 Remove the Java EE and CORBA modules
- Closed
(1 relates to)