JDK-6980124 : closed/javax/swing/plaf/synth/SynthPainter/unitTest/UnitTest.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u23,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux,linux_redhat_5.0
  • CPU: generic,x86
  • Submitted: 2010-08-26
  • Updated: 2011-07-19
  • Resolved: 2011-04-06
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 6 JDK 7 Other
6u27Fixed 7 b132Fixed OpenJDK6Resolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
test closed/javax/swing/plaf/synth/SynthPainter/unitTest/UnitTest.java fails with an exception

see comments

Comments
EVALUATION The SynthMenuItemUI#update method paints background for JMenuItem via the SynthPainter#paintMenuItemBackground method and enters to the SynthGraphicsUtils#paintMenuItem method that paints background again via the SynthPainter#paintMenuItemBackground method. It is a performance problem, because the background is painted twice. The SynthMenuUI#update method paints background for JMenu via the SynthPainter#paintMenuBackground method and enters to the SynthGraphicsUtils#paintMenuItem method that paints background again via the SynthPainter#paintMenuItemBackground method. This is a problem described in the CR: the SynthPainter#paintMenuBackground method should be used for every instance of the JMenuItem which is the instance of the JMenu too. Anyway, the second painter should be removed.
10-02-2011

EVALUATION JMenu/JMenuItem background is painted twice. We should remove extra paint method.
10-02-2011

EVALUATION Seems it is a regression after the 6584657 fix.
01-10-2010