- 
    Bug 
- 
    Resolution: Fixed
- 
     P3 P3
- 
    7, 8u40
- 
        b66
- 
        Verified
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8155198 | 8-pool | Ramanand Patil | P3 | Closed | Won't Fix | |
| JDK-8155202 | 7-pool | Ramanand Patil | P3 | Closed | Won't Fix | 
                    The ZipFileIndexFileObject class from ZipFileIndexArchive.java implements a
content cache using a HashMap. The cache stores contents of files - java or
class files - indexed by the name of the class. By "name" we mean only the
class name and not the fully-qualified name (that would include the package
name). If a certain zip/jar archive contains two classes with the same name,
in different packages, a key collision occurs. The hashCode() and equals()
method for the ZipFileIndexFileObject class fail to distinguish between two
such keys, leading to a wrong value (file content) being retrieved. This
happens only if the "last modified" timestamps for the two files are equal.
This can lead to various problems. For example, a unexpected compilation
failure problem with wsgen (wsgen uses apt, apt uses javac).
content cache using a HashMap. The cache stores contents of files - java or
class files - indexed by the name of the class. By "name" we mean only the
class name and not the fully-qualified name (that would include the package
name). If a certain zip/jar archive contains two classes with the same name,
in different packages, a key collision occurs. The hashCode() and equals()
method for the ZipFileIndexFileObject class fail to distinguish between two
such keys, leading to a wrong value (file content) being retrieved. This
happens only if the "last modified" timestamps for the two files are equal.
This can lead to various problems. For example, a unexpected compilation
failure problem with wsgen (wsgen uses apt, apt uses javac).
- backported by
- 
                    JDK-8155198 Key collisions in ZipFileIndexFileObject content cache lead to wrong content -           
- Closed
 
-         
- 
                    JDK-8155202 Key collisions in ZipFileIndexFileObject content cache lead to wrong content -           
- Closed
 
-         
- duplicates
- 
                    JDK-8143213 javac invalid "duplicate class" errors with sourcepath -           
- Closed
 
-