-
Bug
-
Resolution: Won't Fix
-
P3
-
6
-
5.0
-
x86
-
windows_vista
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2160982 | 7 | Pavel Porvatov | P3 | Closed | Fixed | b118 |
JCK: 6b b15 qac
JDK: 6 b105
FAILED on: Windows platform (Vista, 2003)
api/javax_swing/JDialog/index.html#NewModalityTests[constructor_05]
api/javax_swing/JDialog/index.html#NewModalityTests[constructor_11]
api/javax_swing/JDialog/index.html#NewModalityTests[constructor_16]
----
For constructor JDialog(Frame, String, boolean,GraphicsConfiguration) the spec says:
"Parameters:
gc - the GraphicsConfiguration of the target screen device.
If gc is null, the same GraphicsConfiguration as the owning Frame is used."
This assertion is not satisfied on Windows 2003/Vista.
Please see the following code taken from the testcase that has failed:
---
// GC is null
JDialog dialog = new JDialog(new JDialog((Frame)null), "doesn't matter", false, null);
Window owner = dialog.getOwner();
assertEquals(owner.getGraphicsConfiguration(), dialog.getGraphicsConfiguration();
---
The last assertion fails with a message like this:
com.sun.tck.lib.AssertionFailedException: Expected equal to : "sun.awt.Win32GraphicsConfig@110c424[dev=Win32GraphicsDevice[screen=0],pixfmt=0]", was given: "sun.awt.Win32GraphicsConfig@1aaf0b3[dev=Win32GraphicsDevice[screen=0],pixfmt=2]"
JDK: 6 b105
FAILED on: Windows platform (Vista, 2003)
api/javax_swing/JDialog/index.html#NewModalityTests[constructor_05]
api/javax_swing/JDialog/index.html#NewModalityTests[constructor_11]
api/javax_swing/JDialog/index.html#NewModalityTests[constructor_16]
----
For constructor JDialog(Frame, String, boolean,GraphicsConfiguration) the spec says:
"Parameters:
gc - the GraphicsConfiguration of the target screen device.
If gc is null, the same GraphicsConfiguration as the owning Frame is used."
This assertion is not satisfied on Windows 2003/Vista.
Please see the following code taken from the testcase that has failed:
---
// GC is null
JDialog dialog = new JDialog(new JDialog((Frame)null), "doesn't matter", false, null);
Window owner = dialog.getOwner();
assertEquals(owner.getGraphicsConfiguration(), dialog.getGraphicsConfiguration();
---
The last assertion fails with a message like this:
com.sun.tck.lib.AssertionFailedException: Expected equal to : "sun.awt.Win32GraphicsConfig@110c424[dev=Win32GraphicsDevice[screen=0],pixfmt=0]", was given: "sun.awt.Win32GraphicsConfig@1aaf0b3[dev=Win32GraphicsDevice[screen=0],pixfmt=2]"
- backported by
-
JDK-2160982 JDialog instance returns unexpected GraphicsConfiguration
- Closed
- relates to
-
JDK-6639507 Title of javax.swing.JDialog is null while spec says it's empty
- Closed