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

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 25
    • Affects Version/s: None
    • Component/s: tools
    • None
    • jar
    • b03
    • 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.

            Assignee:
            Christian Stein
            Reporter:
            Christian Stein
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: