-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.4.0
-
x86
-
linux
Name: gm110360 Date: 05/07/2002
FULL PRODUCT VERSION :
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
FULL OPERATING SYSTEM VERSION :Linux gescher 2.4.17-PMC-SMP
#4 SMP Thu Jan 31 14:23:30 CET 2002 i686 unknown
A DESCRIPTION OF THE PROBLEM :
With the interrupted flag set, JOptionPane.showDialog prints
the stack trace.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Compile and run the program below
EXPECTED VERSUS ACTUAL BEHAVIOR :
expected: Nothing should be printed.
actual: the stack trace is printed
ERROR MESSAGES/STACK TRACES THAT OCCUR :
AWT blocker activation interrupted:
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at
sun.awt.AWTAutoShutdown.activateBlockerThread(AWTAutoShutdown.java:309)
at sun.awt.AWTAutoShutdown.setToolkitBusy(AWTAutoShutdown.java:226)
at
sun.awt.AWTAutoShutdown.notifyToolkitThreadBusy(AWTAutoShutdown.java:118)
at sun.awt.SunToolkit.<init>(SunToolkit.java:58)
at sun.awt.motif.MToolkit.<init>(MToolkit.java:80)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at java.awt.Toolkit$2.run(Toolkit.java:724)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
at javax.swing.LookAndFeel$1.createValue(LookAndFeel.java:274)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:181)
at javax.swing.UIDefaults.get(UIDefaults.java:126)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at javax.swing.UIDefaults.getIcon(UIDefaults.java:407)
at javax.swing.UIManager.getIcon(UIManager.java:537)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIconForType(BasicOptionPaneUI.java:555)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIcon(BasicOptionPaneUI.java:543)
at
javax.swing.plaf.basic.BasicOptionPaneUI.createMessageArea(BasicOptionPaneUI.java:313)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installComponents(BasicOptionPaneUI.java:154)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installUI(BasicOptionPaneUI.java:122)
at javax.swing.JComponent.setUI(JComponent.java:445)
at javax.swing.JOptionPane.setUI(JOptionPane.java:1675)
at javax.swing.JOptionPane.updateUI(JOptionPane.java:1697)
at javax.swing.JOptionPane.<init>(JOptionPane.java:1660)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:810)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:624)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:595)
at X.main(X.java:5)
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.JOptionPane;
public class X {
public static void main(String[] args) {
Thread.currentThread().interrupt();
JOptionPane.showMessageDialog(null, "X", "X",
JOptionPane.ERROR_MESSAGE);
}
}
---------- END SOURCE ----------
CUSTOMER WORKAROUND :
clear the interrupt status and set it again after
showMessageDialog
Release Regression From : 1.3.1_02
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
(Review ID: 139297)
======================================================================
FULL PRODUCT VERSION :
java version "1.4.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-rc-b91)
Java HotSpot(TM) Client VM (build 1.4.0-rc-b91, mixed mode)
FULL OPERATING SYSTEM VERSION :Linux gescher 2.4.17-PMC-SMP
#4 SMP Thu Jan 31 14:23:30 CET 2002 i686 unknown
A DESCRIPTION OF THE PROBLEM :
With the interrupted flag set, JOptionPane.showDialog prints
the stack trace.
STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1.Compile and run the program below
EXPECTED VERSUS ACTUAL BEHAVIOR :
expected: Nothing should be printed.
actual: the stack trace is printed
ERROR MESSAGES/STACK TRACES THAT OCCUR :
AWT blocker activation interrupted:
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:426)
at
sun.awt.AWTAutoShutdown.activateBlockerThread(AWTAutoShutdown.java:309)
at sun.awt.AWTAutoShutdown.setToolkitBusy(AWTAutoShutdown.java:226)
at
sun.awt.AWTAutoShutdown.notifyToolkitThreadBusy(AWTAutoShutdown.java:118)
at sun.awt.SunToolkit.<init>(SunToolkit.java:58)
at sun.awt.motif.MToolkit.<init>(MToolkit.java:80)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at java.awt.Toolkit$2.run(Toolkit.java:724)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at javax.swing.ImageIcon.<init>(ImageIcon.java:205)
at javax.swing.LookAndFeel$1.createValue(LookAndFeel.java:274)
at javax.swing.UIDefaults.getFromHashtable(UIDefaults.java:181)
at javax.swing.UIDefaults.get(UIDefaults.java:126)
at javax.swing.MultiUIDefaults.get(MultiUIDefaults.java:44)
at javax.swing.UIDefaults.getIcon(UIDefaults.java:407)
at javax.swing.UIManager.getIcon(UIManager.java:537)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIconForType(BasicOptionPaneUI.java:555)
at
javax.swing.plaf.basic.BasicOptionPaneUI.getIcon(BasicOptionPaneUI.java:543)
at
javax.swing.plaf.basic.BasicOptionPaneUI.createMessageArea(BasicOptionPaneUI.java:313)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installComponents(BasicOptionPaneUI.java:154)
at
javax.swing.plaf.basic.BasicOptionPaneUI.installUI(BasicOptionPaneUI.java:122)
at javax.swing.JComponent.setUI(JComponent.java:445)
at javax.swing.JOptionPane.setUI(JOptionPane.java:1675)
at javax.swing.JOptionPane.updateUI(JOptionPane.java:1697)
at javax.swing.JOptionPane.<init>(JOptionPane.java:1660)
at javax.swing.JOptionPane.showOptionDialog(JOptionPane.java:810)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:624)
at javax.swing.JOptionPane.showMessageDialog(JOptionPane.java:595)
at X.main(X.java:5)
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
import javax.swing.JOptionPane;
public class X {
public static void main(String[] args) {
Thread.currentThread().interrupt();
JOptionPane.showMessageDialog(null, "X", "X",
JOptionPane.ERROR_MESSAGE);
}
}
---------- END SOURCE ----------
CUSTOMER WORKAROUND :
clear the interrupt status and set it again after
showMessageDialog
Release Regression From : 1.3.1_02
The above release value was the last known release where this
bug was known to work. Since then there has been a regression.
(Review ID: 139297)
======================================================================