-
Bug
-
Resolution: Not an Issue
-
P4
-
internal
-
x86_64
-
os_x
The test test/jdk/java/awt/Paint/PaintNativeOnUpdate.java fails with the following output :
#section:main
----------messages:(5/200)----------
command: main PaintNativeOnUpdate
reason: User specified action: run main PaintNativeOnUpdate
Mode: othervm
Additional options from @modules: --add-modules java.desktop
elapsed time (seconds): 5.155
----------configuration:(3/40)----------
Boot Layer
add modules: java.desktop
----------System.out:(2/56)----------
Metal: Supported, feature set macOS GPUFamily2 v1
----------System.err:(17/880)----------
metalEnabled=1
Metal support is present
Expected color = java.awt.Color[r=0,g=255,b=0]
Actual color = java.awt.Color[r=0,g=255,b=2]
java.lang.RuntimeException
at PaintNativeOnUpdate.main(PaintNativeOnUpdate.java:68)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException
The failure was not observed on OpenJDK builds jdk-15-ea+17_osx-x64
The reproducibility: 100%
Steps to reproduce:
$ jtreg -Dsun.java2d.metal=true -testjdk:[path_to_lanai_home] test/jdk/java/awt/Paint/PaintNativeOnUpdate.java
The test successfully passes with -Dsun.java2d.metal=false
#section:main
----------messages:(5/200)----------
command: main PaintNativeOnUpdate
reason: User specified action: run main PaintNativeOnUpdate
Mode: othervm
Additional options from @modules: --add-modules java.desktop
elapsed time (seconds): 5.155
----------configuration:(3/40)----------
Boot Layer
add modules: java.desktop
----------System.out:(2/56)----------
Metal: Supported, feature set macOS GPUFamily2 v1
----------System.err:(17/880)----------
metalEnabled=1
Metal support is present
Expected color = java.awt.Color[r=0,g=255,b=0]
Actual color = java.awt.Color[r=0,g=255,b=2]
java.lang.RuntimeException
at PaintNativeOnUpdate.main(PaintNativeOnUpdate.java:68)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:564)
at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
at java.base/java.lang.Thread.run(Thread.java:832)
JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test
STATUS:Failed.`main' threw exception: java.lang.RuntimeException
The failure was not observed on OpenJDK builds jdk-15-ea+17_osx-x64
The reproducibility: 100%
Steps to reproduce:
$ jtreg -Dsun.java2d.metal=true -testjdk:[path_to_lanai_home] test/jdk/java/awt/Paint/PaintNativeOnUpdate.java
The test successfully passes with -Dsun.java2d.metal=false