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

Bootstrap javac having problem finding features flags

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2
    • Resolution: Unresolved
    • Affects Version/s: 14
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
      None

      Description

      From Jim Laskey:

      Ran into a javac bootstrap issue not sure what is wrong. I switched from a 13 to a 14 bootstrap for my text blocks changes and now I'm getting.

      warning: unknown enum constant Feature.TEXT_BLOCKS
      warning: unknown enum constant Feature.TEXT_BLOCKS
      warning: unknown enum constant Feature.TEXT_BLOCKS

      for the 3 checkSourceLevel in JavaTokenizer.java.

      but Source clearly has TEXT_BLOCKS(JDK15, Fragments.FeatureTextBlocks, DiagKind.PLURAL),

      JavaTokenizer.java has import com.sun.tools.javac.code.Source.Feature;

      This is after a nuked build folder configure

      Switching back to 13 works fine

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jlaskey Jim Laskey
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: