In JDK-8344148 a new WARN compiler phase was added and JavaCompiler.java was updated accordingly.
However, the class com.sun.tools.javac.api.JavacTaskImpl also walks through the compiler phases step-by-step and the new WARN step was not added there. This will cause some warnings to not be emitted when that API is used.
This should be easy to fix - just add an invocation of compiler.warn() after compiler.flow().
However, the class com.sun.tools.javac.api.JavacTaskImpl also walks through the compiler phases step-by-step and the new WARN step was not added there. This will cause some warnings to not be emitted when that API is used.
This should be easy to fix - just add an invocation of compiler.warn() after compiler.flow().
- causes
-
JDK-8349475 Test tools/javac/api/TestJavacTaskWithWarning.java writes files in src dir
-
- Resolved
-
- relates to
-
JDK-8344148 Add an explicit compiler phase for warning generation
-
- Resolved
-
- links to
-
Commit(master) openjdk/jdk/5431668c
-
Review(master) openjdk/jdk/23223