It is possible to chain jar files using their index files such that a lookup of
a resource starting at the root jar would cause the program to hang
indefinitely. The problem occurs because the lookup of jar files fails to skip
jar files that have already been searched during the current lookup. This bug
occurs for jdk1.3 on solaris and win32 (NT)
The attached code illustrates the problem. To run the code,
1. Set the classpath to .:a.jar:b.jar:c.jar
2. java c.A
a resource starting at the root jar would cause the program to hang
indefinitely. The problem occurs because the lookup of jar files fails to skip
jar files that have already been searched during the current lookup. This bug
occurs for jdk1.3 on solaris and win32 (NT)
The attached code illustrates the problem. To run the code,
1. Set the classpath to .:a.jar:b.jar:c.jar
2. java c.A
- relates to
-
JDK-4358512 Classes loaded through reflection produces InvalidJarIndexException errors
-
- Closed
-