JDK-6568560 : Regression testcase java/awt/FullScreen/UninitializedDisplayModeChangeTest fails from 6u2 b01
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 6,6u2
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp,windows_vista
  • CPU: x86
  • Submitted: 2007-06-12
  • Updated: 2008-02-06
  • Resolved: 2007-06-30
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
6u4 b01Fixed 7Fixed
Related Reports
Duplicate :  
Relates :  
Description
Regression testcase java/awt/FullScreen/UninitializedDisplayModeChangeTest fails starting from build 6u2 b01, on Windows platform. It throws the following exception:

java.lang.NullPointerException 
       at sun.awt.Win32GraphicsEnvironment.displayChanged(Win32GraphicsEnvironment.java:116)
       at sun.awt.windows.WToolkit$4.run(WToolkit.java:755)
       at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
       at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
       at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Comments
SUGGESTED FIX http://javaweb.sfbay/jcg/6u3/2D/6568560/
15-06-2007

EVALUATION The regression is caused by the fix for 4417798: Need to track add/remove of monitors on display changes We should have checked if 'screens' is null prior to using it in Win32GraphicsEnvironment.displayChanged(). The same regression is present in the current jdk7 build.
12-06-2007

WORK AROUND Call GraphicsEnvironment.getScreenDevices() prior to changing display modes.
12-06-2007