JDK-8012569 : TEST_BUG: java/awt/GraphicsDevice/CheckDisplayModes.java fails
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2013-04-18
  • Updated: 2019-11-13
  • Resolved: 2013-06-11
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 7 JDK 8
7u251Fixed 8 b96Fixed
Description
Testsuite name: Regression
Test name: java/awt/GraphicsDevice/CheckDisplayModes.java
OS tested: Linux SuSE 10 32 bit, Windows 7 64 bit
JDK tested: JDK 8b85
Is it a regression: NO

Test was integrated in 8b84 and fails since 8b84.

Log:

#section:main
----------messages:(3/121)----------
command: main CheckDisplayModes
reason: User specified action: run main CheckDisplayModes 
elapsed time (seconds): 0.155
----------System.out:(0/0)----------
----------System.err:(15/924)----------
java.lang.UnsupportedOperationException: Cannot change display mode
	at java.awt.GraphicsDevice.setDisplayMode(GraphicsDevice.java:421)
	at sun.awt.X11GraphicsDevice.setDisplayMode(X11GraphicsDevice.java:403)
	at CheckDisplayModes.main(CheckDisplayModes.java:42)
	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:487)
	at com.sun.javatest.regtest.MainWrapper$MainThread.run(MainWrapper.java:96)
	at java.lang.Thread.run(Thread.java:722)

JavaTest Message: Test threw exception: java.lang.UnsupportedOperationException: Cannot change display mode
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.UnsupportedOperationException: Cannot change display mode
result: Failed. Execution failed: `main' threw exception: java.lang.UnsupportedOperationException: Cannot change display mode


test result: Failed. Execution failed: `main' threw exception: java.lang.UnsupportedOperationException: Cannot change display mode
Comments
CPU20-01-critical-request - Justification : This fix is required by the fix for JDK-8213119(tck-red). - Risk Analysis : low risk, This is a fix in the test.
04-11-2019

Test used for Verification: java/awt/GraphicsDevice/CheckDisplayModes.java PASSED on Windows, Mac, Linux, Solaris. Closed as Verified.
02-08-2013

Test should check GraphicsDevice.isDisplayChangeSupported before call setDisplayMode. (On macosx it is always supported)
27-05-2013

Test passes only on MacOS, the fix has been made only for MacOS. So the test is only for MacOS.
27-05-2013

P4 as a test bug
06-05-2013

Relates to JDK-8007146
18-04-2013