--- old/src/share/classes/java/awt/event/InvocationEvent.java 2012-07-19 18:17:29.994786856 +0400 +++ new/src/share/classes/java/awt/event/InvocationEvent.java 2012-07-19 18:17:29.886786859 +0400 @@ -28,9 +28,6 @@ import java.awt.ActiveEvent; import java.awt.AWTEvent; -import sun.awt.AWTAccessor; -import sun.awt.AWTInterruptedException; - /** * An event which executes the run() method on a Runnable * when dispatched by the AWT event dispatcher thread. This class can @@ -130,16 +127,6 @@ */ private static final long serialVersionUID = 436056344909459450L; - static { - AWTAccessor.setInvocationEventAccessor( - new AWTAccessor.InvocationEventAccessor() { - @Override - public void dispose(InvocationEvent ie) { - ie.dispose(); - } - }); - } - /** * Constructs an InvocationEvent with the specified * source which will execute the runnable's run @@ -241,19 +228,6 @@ this.when = System.currentTimeMillis(); } - /* - * Marks the event as dispatched and notifies all interested parties. - */ - private void setDispatched() { - dispatched = true; - - if (notifier != null) { - synchronized (notifier) { - notifier.notifyAll(); - } - } - } - /** * Executes the Runnable's run() method and notifies the * notifier (if any) when run() has returned or thrown an exception. @@ -277,16 +251,14 @@ runnable.run(); } } finally { - setDispatched(); - } - } + dispatched = true; - private void dispose() { - throwable = exception = - new AWTInterruptedException( - "The event is discarded due to Event Thread interruption"); - - setDispatched(); + if (notifier != null) { + synchronized (notifier) { + notifier.notifyAll(); + } + } + } } /**