JDK-6817950 : refactor ClassReader to improve attribute handling
  • Type: Enhancement
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2009-03-16
  • Updated: 2013-03-15
  • Resolved: 2011-07-25
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 7
7 b55Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Description
Currently, ClassReader uses somewhat clunky code to read attributes that is inflexible (if-then-else chain) and somewhat less than correct (for example, classfile version is not taken into account when determining if an attribute is valid or not.)

It would be better to refactor the code as a collection of attribute readers. This will make the code more robust for updates (e.g. 308, jigsaw) and downstream products (e.g. NetBeans) that need to define additional classfile attributes.

Comments
EVALUATION Yes.
18-03-2009