<AWT Dev> [9] Review Request: JDK-8036112: JColorChooser throws a NPE when applet with static reference is reloaded

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Apr 1 11:17:17 UTC 2014

Hi, Dmitry.
This means that the wrong EDT will be used for some components.
The situation is strange. We have appcontext and probably some 
components, which belongs to it, but there is no appropriate EDT. Why? 
Should we recreate it?
And i think appContext.getAppContext() can be null too.

On 4/1/14 3:02 PM, dmitry markov wrote:
> Hello,
> Could you review the fix for jdk9, please?
> bug: https://bugs.openjdk.java.net/browse/JDK-8036112
> webrev: http://cr.openjdk.java.net/~dmarkov/8036112/jdk9/webrev.00/
> Problem description: the EventQueue object stored in AppContext for 
> static fields of an applet becomes null after the refresh of the web 
> page. This may cause a NPE in swing/awt code.
> Fix: The method SunToolkit.getSystEmeventQueueImplPP(AppContext 
> appContext) should be modified. If the EventQueue from the passed 
> AppContext is null, the method will retrieve the EventQueue from the 
> default AppContext.
> Thanks,
> Dmitry

Best regards, Sergey.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20140401/6b62537c/attachment-0001.html>

More information about the awt-dev mailing list