-
Bug
-
Resolution: Fixed
-
P4
-
9
-
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,.]
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,.]