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

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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Unresolved
    • P4
    • 23
    • None
    • tools
    • None
    • jar
    • generic
    • generic

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: