Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8194893

javac -verbose prints wrong paths for output files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 9
    • tools
    • b01

      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]]

            jjg Jonathan Gibbons
            kbronkho Keimpe Bronkhorst (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: