JDK-8208202 : java.lang.reflect.ProxyGenerator should generate up to date classes
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 12
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-07-25
  • Updated: 2018-07-25
  • Resolved: 2018-07-25
Related Reports
Duplicate :  
Description
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.
Comments
This duplicates JDK-8207814
25-07-2018