-
Enhancement
-
Resolution: Fixed
-
P4
-
1.3.0
-
tiger
-
x86
-
windows_98
Name: yyT116575 Date: 01/10/2001
java version "1.3.0"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)
[Packaged with JBuilder 4]
class Y {
static {
System.loadLibrary("abcd"); //lib does not exist. Throws Error.
}
}
class X {
public static void main(String[] args) {
try {
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
public void run()
{
new Y();
}
});
} catch(Exception ex) {
ex.printStackTrace();
}
}
}
Exception occurred during event dispatching:
java.lang.UnsatisfiedLinkError: no acbd in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312)
at java.lang.Runtime.loadLibrary0(Runtime.java:749)
at java.lang.System.loadLibrary(System.java:820)
at Y.<clinit>(Play.java:10)
at X$2.run(Play.java:58)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:147)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:317)
at java.awt.EventDispatchThread.pumpOneEvent
(EventDispatchThread.java:103)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:84)
InvocationEvent needs to catch Throwable instead of Exception.
public class InvocationEvent extends AWTEvent implements ActiveEvent {
...
public void dispatch() {
if (catchExceptions) {
try {
runnable.run();
}
catch (Exception e) { //<== Should be Throwable
exception = e;
}
(Review ID: 114699)
======================================================================
- relates to
-
JDK-6225372 Posslbe for EventQueue.invokeAndWait to never return, without deadlocking
-
- Resolved
-