JDK-8011226 : java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed on solaris "The shape has not been applied"
Type:Bug
Component:client-libs
Sub-Component:java.awt
Affected Version:8
Priority:P2
Status:Closed
Resolution:Duplicate
OS:solaris
CPU:generic
Submitted:2013-04-02
Updated:2015-03-23
Resolved:2013-09-27
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.
java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java failed on solaris and passed on linux with jdk8b83
test failed since jdk8b04 and passed with jdk7u21b10
Comments
RULE java/awt/Frame/ShapeNotSetSometimes/ShapeNotSetSometimes.java Exception java.lang.RuntimeException: Test failed. The shape has not been applied.
23-03-2015
I can reproduce the issue on b03 as well with and w/o xrenderer
27-09-2013
Its is unclear how RemoveAllShrinkTest on mac is related to the main bug.
13-09-2013
Window#setShape is not supported on jdk<=7u25 on macosx, so java.lang.UnsupportedOperationException is expected on macosx. If the test fails on >=jdk7u40 on macosx please file another CR.
31-07-2013
Same failure on Mac OS X 10.8 JDK 7u40 b35 and 7u40 b02.
When run on macos with 7u25 b10 we have other failure:
#section:main
----------messages:(3/127)----------
command: main ShapeNotSetSometimes
reason: User specified action: run main ShapeNotSetSometimes
elapsed time (seconds): 0.443
----------System.out:(1/10)----------
Attempt 0
----------System.err:(36/2260)----------
java.lang.reflect.InvocationTargetException
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1272)
at java.awt.EventQueue.invokeAndWait(EventQueue.java:1247)
at ShapeNotSetSometimes.<init>(ShapeNotSetSometimes.java:49)
at ShapeNotSetSometimes.main(ShapeNotSetSometimes.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:94)
at java.lang.Thread.run(Thread.java:724)
Caused by: java.lang.UnsupportedOperationException: PERPIXEL_TRANSPARENT translucency is not supported.
at java.awt.Window.setShape(Window.java:3692)
at java.awt.Frame.setShape(Frame.java:975)
at ShapeNotSetSometimes.initializeGUI(ShapeNotSetSometimes.java:89)
at ShapeNotSetSometimes.access$000(ShapeNotSetSometimes.java:38)
at ShapeNotSetSometimes$1.run(ShapeNotSetSometimes.java:51)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:241)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
JavaTest Message: Test threw exception: java.lang.reflect.InvocationTargetException
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.reflect.InvocationTargetException
result: Failed. Execution failed: `main' threw exception: java.lang.reflect.InvocationTargetException
31-07-2013
-Dsun.java2d.xrender=False or -Dsun.java2d.xrender=false does not help the test to pass, it fails.
31-07-2013
It looks as if this is the same issue as JDK-7042149 which is closed as a duplicate of JDK-7043455 (fixed in 7).
However, given the fact that this is a regression introduced in 8b04, I'd say the only candidate fix that might have caused it is JDK-7077423 "Enable Xrender by default".
Does the test fail if run with -Dsun.java2d.xrender=False or -Dsun.java2d.xrender=false ? If not, then this is a 2d bug. If it still fails, then it should be closed as a duplicate of JDK-7043845.