JDK-8025934 : Preserve type annotations through a class redefine
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.lang:reflect
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-10-04
  • Updated: 2014-10-27
  • Resolved: 2014-10-27
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 9
9Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Since constant pool indexes can change in a class redefine and type annotations refer to the const pool the Runtime(In)VisibleTypeAnnotation attributes needs to be rewritten under a class redefine to match the new indexes in the the const pool.

Today the type annotations are cleared out instead of possibly having broken indexes, this means type annotations disappear in a class redefine.

ILW: MLH -> P4