Regression: javac -verbose prints wrong paths for output files (JDK9 and higher). This breaks tools that parse the output of Javac.
To reproduce:
Use a Java source in a package, e.g. bar.java in barpackage
javac -d <output dir> -verbose <path to java source>
Output:
On Linux I see:
[wrote DirectoryFileObject[/work:barpackage/bar.class]]
Notice the ':' instead of '/'
Using JDK8:
[wrote RegularFileObject[/work/barpackage/bar.class]]
On Windows:
[wrote DirectoryFileObject[\work:barpackage/bar.class]]
Notice the ':' instead of '\' and the '/' instead of '\'
Using JDK8:
[wrote RegularFileObject[\work\barpackage\bar.class]]
To reproduce:
Use a Java source in a package, e.g. bar.java in barpackage
javac -d <output dir> -verbose <path to java source>
Output:
On Linux I see:
[wrote DirectoryFileObject[/work:barpackage/bar.class]]
Notice the ':' instead of '/'
Using JDK8:
[wrote RegularFileObject[/work/barpackage/bar.class]]
On Windows:
[wrote DirectoryFileObject[\work:barpackage/bar.class]]
Notice the ':' instead of '\' and the '/' instead of '\'
Using JDK8:
[wrote RegularFileObject[\work\barpackage\bar.class]]
- relates to
-
JDK-8202584 de-problem list tools/javac/jvm/VerboseOutTest
-
- Resolved
-
-
JDK-8194968 problem list actions for tools/javac/jvm/VerboseOutTest
-
- Closed
-
-
JDK-5048018 Doubled slashes in file names logged by 1.5 javadoc
-
- Closed
-