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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 25
    • Affects Version/s: 25
    • Component/s: tools
    • None
    • Environment:

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

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

              Created:
              Updated:
              Resolved: