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

[lworld] javac is generating a class file with the Preload attribute but with minor version '0'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • repo-valhalla
    • repo-valhalla
    • tools

      if these files are compiled:

      value class Val {}

      class Ident {
          Val val;
      }

      when compiling these classes as in:
      javac -d out --enable-preview -source 23 myTests/Val.java myTests/Ident.java

      Ident.class will have a Preload attribute but its minor version is `0` instead of `65535`

            vromero Vicente Arturo Romero Zaldivar
            vromero Vicente Arturo Romero Zaldivar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: