The fix for 4241573 was intended to strip off any directory prefix of the
source file pathname when writing out the SourceFile attribute in the class
file. This attribute should contain only a simple filename. The code
searches for the platform-specific path separatorChar. Since we also permit
the Unix-style "/" separator as well as the native Windows/DOS "\" separator
on Win32 when passing filenames on the 'javac' command line, this code fails
when the Unix-style separator is used, allowing the full pathname to appear
in the SourceFile attribute.
william.maddox@Eng 1999-07-22
source file pathname when writing out the SourceFile attribute in the class
file. This attribute should contain only a simple filename. The code
searches for the platform-specific path separatorChar. Since we also permit
the Unix-style "/" separator as well as the native Windows/DOS "\" separator
on Win32 when passing filenames on the 'javac' command line, this code fails
when the Unix-style separator is used, allowing the full pathname to appear
in the SourceFile attribute.
william.maddox@Eng 1999-07-22
- relates to
-
JDK-4404985 Incorrect SourceFile attributes in java.lang classes
-
- Resolved
-