JDK-6345095 : regression test EmptyClipRenderingTest fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6,6u4,7
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86,sparc
  • Submitted: 2005-11-02
  • Updated: 2021-04-26
  • Resolved: 2014-12-03
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 8 JDK 9 Other
8u301Fixed 9 b44Fixed openjdk8u292Fixed
Related Reports
Relates :  
Relates :  
Description
Regression test test/sun/java2d/SunGraphics2D/EmptyClipRenderingTest.java
fails on windows on 5.0 and mustang.

The subtest which fails is on-screen rendering:
java.lang.RuntimeException: Dest: Screen was rendered to at x=395 y=12 pixel=ffff0000
        at EmptyClipRenderingTest.testResult(EmptyClipRenderingTest.java:221)
        at EmptyClipRenderingTest.<init>(EmptyClipRenderingTest.java:48)
        at EmptyClipRenderingTest.main(EmptyClipRenderingTest.java:238)
Exception in thread "main" java.lang.RuntimeException: Test FAILED: 1 subtest failures.
        at EmptyClipRenderingTest.<init>(EmptyClipRenderingTest.java:84)
        at EmptyClipRenderingTest.main(EmptyClipRenderingTest.java:238)

Comments
Please re-open if - if fix is in progress or on the plan to fix soon - if this is a P3 (file as P3, not P4)
18-03-2014

EVALUATION The cause appears to be pretty much the same as in X11 case: incorrect handling of empty clipping region in Win32SurfaceData.cpp's Win32_InitDC.
02-11-2005

EVALUATION Note that the original bug for which this regression test was written: 6335200: HTML text of JTree&#39;s nodes disappear when horizontally scrolling the ScrollPane containing the tree is not reproducible on Windows. But the regression test is covering a lot of cases besides the one that swing ran into.
02-11-2005