JDK-6597424 : OpenJDK: api/java_awt/Color/index.html#CreateContextTesttestCase4,5,6,7 fail since JDK 7 b14
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: OpenJDK6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-08-27
  • Updated: 2011-01-19
  • Resolved: 2008-02-12
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.
Other
OpenJDK6 b05Fixed
Related Reports
Relates :  
Relates :  
Description
JCK tests are failing since JDK 7 b14: api/java_awt/Color/index.html#CreateContextTesttestCase4,5,6,7
We need to do an Open JDK 6. The right solution would be to fix the specification but it's not acceptable there. On the other hand, we can't exclude these JCK tests because they still covers some assertions in the spec.

Comments
SUGGESTED FIX --- Color.java 2007-08-27 12:14:36.000000000 +0400 *************** *** 1199,1205 **** Rectangle2D r2d, AffineTransform xform, RenderingHints hints) { ! return new ColorPaintContext(getRGB(), cm); } /** --- 1199,1211 ---- Rectangle2D r2d, AffineTransform xform, RenderingHints hints) { ! ColorPaintContext pc = theContext; ! int rgb = getRGB(); ! if (pc == null || pc.getRGB() != rgb) { ! pc = new ColorPaintContext(rgb, cm); ! theContext = pc; ! } ! return pc; } /**
27-08-2007

EVALUATION Should partially revert the fix for CR6530420.
27-08-2007