-
Bug
-
Resolution: Fixed
-
P2
-
5.0u65
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8039445 | 5.0u75 | Mikhail Cherkasov | P2 | Resolved | Fixed | b01 |
Sometimes java 1.5.0_65-b10 throws NullPointerException from java.awt.EventQueue.isDispatchThread.
This reproduces only sometimes (once in 150 runs on my machine), but since the test is so quick it doesn't take long to reproduce.
# while $JAVA_HOME/bin/java Test; do; done
Exception in thread "main" java.lang.NullPointerException
at java.awt.EventQueue.isDispatchThread(EventQueue.java:726)
at Test.main(Test.java:5)
# $JAVA_HOME/bin/java -version
java version "1.5.0_65"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_65-b10)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_65-b10, mixed mode)
Running on Linux 3.13.6-1-ARCH x86_64 with X.Org X Server 1.15.0.
---- CODE ----
import java.awt.EventQueue;
public class Test {
public static void main(String[] args) throws Exception {
boolean disp = EventQueue.isDispatchThread();
}
}
---- END CODE ----
Sleeping for 10 seconds before calling isDispatchThread did not help.
(I tried this since I thought it might be some kind of VM startup race)
This reproduces only sometimes (once in 150 runs on my machine), but since the test is so quick it doesn't take long to reproduce.
# while $JAVA_HOME/bin/java Test; do; done
Exception in thread "main" java.lang.NullPointerException
at java.awt.EventQueue.isDispatchThread(EventQueue.java:726)
at Test.main(Test.java:5)
# $JAVA_HOME/bin/java -version
java version "1.5.0_65"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_65-b10)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_65-b10, mixed mode)
Running on Linux 3.13.6-1-ARCH x86_64 with X.Org X Server 1.15.0.
---- CODE ----
import java.awt.EventQueue;
public class Test {
public static void main(String[] args) throws Exception {
boolean disp = EventQueue.isDispatchThread();
}
}
---- END CODE ----
Sleeping for 10 seconds before calling isDispatchThread did not help.
(I tried this since I thought it might be some kind of VM startup race)
- backported by
-
JDK-8039445 NullPointerException at java.awt.EventQueue.isDispatchThread
-
- Resolved
-