JDK-6530420 : remove unnecessary fields in Color class
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-03-02
  • Updated: 2020-02-23
  • Resolved: 2011-05-17
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 b14Fixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
java.awt.Color class keeps the pData field that is never used neither from Java nor native layer.
Also, Color.theContext field (being used as a cache) seem useless.

Comments
SUGGESTED FIX http://sa.sfbay.sun.com/projects/awt_data/7/6530420/
02-03-2007

EVALUATION Fields are transient and we may expect no problems with serialization. Eliminating the cache instance from the Color class needs removing a reg-test.
02-03-2007