United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6705935 javac reports path name of entry in ZipFileIndex incorectly
JDK-6705935 : javac reports path name of entry in ZipFileIndex incorectly

Details
Type:
Bug
Submit Date:
2008-05-22
Status:
Closed
Updated Date:
2012-01-13
Project Name:
JDK
Resolved Date:
2012-01-13
Component:
tools
OS:
generic
Sub-Component:
javac
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:

Related Reports
Backport:

Sub Tasks

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
SUGGESTED FIX

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

Yes
                                     
2008-05-22



Hardware and Software, Engineered to Work Together