java.lang.reflect.ProxyGenerator should generate up to date classes

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Duplicate
    • Priority: P2
    • None
    • Affects Version/s: 12
    • Component/s: core-libs
    • None

      Class java.lang.reflect.ProxyGenerator generates proxy class files without stackmaps, requiring these classes to be class file version 49, so they can be verified by the old verifier.

      This is a potential problem if a class file version dependent entity needs to be added to a proxy class. One example of this is project Valhalla's ValueType attribute for class file versions >= 55. According to the JVM Spec, this attribute should be ignored in old class files, preventing the JVM from recognizing value type references in proxy classes.

      ProxyGenerator should be re-written (using asm?) to generate classes whose class file version is the JDK's latest supported version.

            Assignee:
            Unassigned
            Reporter:
            Harold Seigel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: