-
Bug
-
Resolution: Fixed
-
P3
-
9
-
b47
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8084138 | emb-9 | Chris Hegarty | P3 | Resolved | Fixed | team |
The modular image no longer contains jar files. The test should use the JRT FileSystem to iterate over the image class files.
Test sun/reflect/CallerSensitive/CallerSensitiveFinder.java need to be re-examined, it tries to check JAR files under jre/lib. The test is passes, but does not actually do anything useful.
if (classes.isEmpty()) {
classes.addAll(PlatformClassPath.getJREClasses());
}
...
static class PlatformClassPath {
static List<Path> getJREClasses() throws IOException {
List<Path> result = new ArrayList<Path>();
Path home = Paths.get(System.getProperty("java.home"));
if (home.endsWith("jre")) {
// jar files in <javahome>/jre/lib
// skip <javahome>/lib
result.addAll(addJarFiles(home.resolve("lib")));
...
Test sun/reflect/CallerSensitive/CallerSensitiveFinder.java need to be re-examined, it tries to check JAR files under jre/lib. The test is passes, but does not actually do anything useful.
if (classes.isEmpty()) {
classes.addAll(PlatformClassPath.getJREClasses());
}
...
static class PlatformClassPath {
static List<Path> getJREClasses() throws IOException {
List<Path> result = new ArrayList<Path>();
Path home = Paths.get(System.getProperty("java.home"));
if (home.endsWith("jre")) {
// jar files in <javahome>/jre/lib
// skip <javahome>/lib
result.addAll(addJarFiles(home.resolve("lib")));
...
- backported by
-
JDK-8084138 sun/reflect/CallerSensitive/CallerSensitiveFinder.java should use the JRT FileSystem
-
- Resolved
-