JDK-6705935 : javac reports path name of entry in ZipFileIndex incorectly
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-05-22
  • Updated: 2012-01-13
  • Resolved: 2012-01-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7 b29Fixed OpenJDK6Fixed
Description
com.sun.tools.javac.util.DefaultFileManager$ZipFileIndexFileObject prints out a silly value for getPath, giving the entry name twice, instead of the file and entry name.

For example,
	java/lang/Void.class(java/lang:Void.class)
instead of 
	/opt/jdk/jdk1.6.0_05/lib/ct.sym(java/lang/Void.class)

Comments
EVALUATION Yes
22-05-2008

SUGGESTED FIX In JavacFileManager, line 1609 replace return entry.getName() + "(" + entry + ")"; with return zipName + "(" + entry.getName() + ")";
22-05-2008