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

Need to add warn() step to JavacTaskImpl after JDK-8344148

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 25
    • 25
    • tools
    • None
    • jdk-25+6-33-g644d154c7c7

    • b08
    • generic
    • generic

      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().

            acobbs Archie Cobbs
            acobbs Archie Cobbs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: