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

javac -verbose logs the class path multiple times

XMLWordPrintable

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

      -verbose used to log the source path and class paths once per compilation, but JDK-8142968 changed it to log the search paths once every time ClassFinder#scanUserPaths is called: http://hg.openjdk.java.net/jdk9/dev/langtools/rev/9adfb22ff08f#l50.149

      This produces a large amount of redundant log output, especially for compilations with long search paths.

      Repro:

      $ echo 'class A {}' > A.java
      $ echo 'class B {}' > B.java
      $ javac -fullversion -verbose -source 8 -target 8 A.java B.java
      [search path for source files: .]
      [search path for class files: $JAVA_HOME/lib/modules,.]
      [search path for source files: .]
      [search path for class files: $JAVA_HOME/lib/modules,.]
      [search path for source files: .]
      [search path for class files: $JAVA_HOME/lib/modules,.]
      [search path for source files: .]
      [search path for class files: $JAVA_HOME/lib/modules,.]

            jjg Jonathan Gibbons
            cushon Liam Miller-Cushon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: