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

jar --validate should check targeted classes in MR-JAR files

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • 25
    • None
    • tools
    • None
    • jar
    • generic
    • generic

      All targeted classes in a MR-JAR file should target the same or at least a lower bytecode level. For example, META-INF/versions/9 must not contain .class files targeting Java 10 or higher.

      The --validate option introduced into the jar tool since Java 17 seems a good place to check this constraint.

            cstein Christian Stein
            cstein Christian Stein
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: