JDK-6710434 : PIT: Reg test java/awt/Graphics2D/ClipPrimitivesTest.java fails in pit build 6u10_b26
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6u10,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic,linux,solaris
  • CPU: generic,x86
  • Submitted: 2008-06-04
  • Updated: 2012-10-01
  • Resolved: 2008-06-09
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
6u10 b26Fixed 7Fixed
Related Reports
Duplicate :  
Relates :  
Description
The regression testcase java/awt/Graphics2D/ClipPrimitivesTest.java fails with the current pit build 6u10_b26. Its failing on all the platforms windows/linux/solaris.

I tested it on Windows Xp Home, Solaris Sparc 10, Rhel4
It passes with the previous 6u10 builds.

The .jtr file is also attached.

The output of the testcase is as follows:
----------messages:(3/126)----------
command: main ClipPrimitivesTest
reason: User specified action: run main ClipPrimitivesTest 
elapsed time (seconds): 1.203
----------System.out:(0/0)----------
----------System.err:(18/1178)----------
Has non-backColor pixel at (18,62)
java.lang.RuntimeException: Test Failed. drawOval/fillOval is rendered outside the clipping
	at ClipPrimitivesTest.reportProblem(ClipPrimitivesTest.java:208)
	at ClipPrimitivesTest.testPrimitive(ClipPrimitivesTest.java:147)
	at ClipPrimitivesTest.testClipping(ClipPrimitivesTest.java:156)
	at ClipPrimitivesTest.testAllPrimitives(ClipPrimitivesTest.java:324)
	at ClipPrimitivesTest.main(ClipPrimitivesTest.java:349)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:82)
	at java.lang.Thread.run(Thread.java:619)

JavaTest Message: Test threw exception: java.lang.RuntimeException: Test Failed. drawOval/fillOval is rendered outside the clipping
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test Failed. drawOval/fillOval is rendered outside the clipping
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test Failed. drawOval/fillOval is rendered outside the clipping

test result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test Failed. drawOval/fillOval is rendered outside the clipping

Comments
EVALUATION The problem is that fix of the 6670881 uses upper boundaries of clipping as inclusive ones but should use them as exclusive.
05-06-2008

EVALUATION This is a regression caused by the fix for 6670881: Phantom lines appear when rendering polygons & ellipses with antialiasing OFF after I backed off this fix the test passed.
05-06-2008