United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6613860 D3D/OGL: accelerated pipelines incorrectly deal with mutable Color subclasses
JDK-6613860 : D3D/OGL: accelerated pipelines incorrectly deal with mutable Color subclasses

Details
Type:
Bug
Submit Date:
2007-10-06
Status:
Closed
Updated Date:
2011-03-30
Project Name:
JDK
Resolved Date:
2007-10-23
Component:
client-libs
OS:
windows_xp
Sub-Component:
2d
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u5
Fixed Versions:
6u10 (b06)

Related Reports

Sub Tasks

Description
The new accelerated pipelines (OGL, D3D) don't handle well subclasses
of Color which change its rgb over time (see attached test case).

The Nimbus L&F uses mutable colors for color theming, and
this might cause artifacts.

                                    

Comments
EVALUATION

While Color subclasses are supposed to be immutable unfortunately
the API allows for subclassing (and in fact there's a jdk class
SystemClass which does change the rgb with device palette changes).

We can at least handle the case where the rgb changes from 
one Graphics instance to another.

In BufferedContext.validate() we should improve the check for whether
we should update the color in the native context. Currently we just
check if the instance of the Paint object is changed.
                                     
2007-10-06
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/java2d_data/6u5/6613860.0
                                     
2007-10-09



Hardware and Software, Engineered to Work Together