<AWT Dev> [8] Review request for 8022555: [macosx] AppleScriptEngine.jar MUST call java.awt.Toolkit.getDefaultToolkit() lazily

Leonid Romanov leonid.romanov at oracle.com
Mon Sep 23 05:32:32 PDT 2013

No idea. I would guess that AppleScriptEngine needs Cocoa loop running 
in order to work. Since we don't have regression tests for this 
functionality, I haven't tried removing Toolkit.getDefaultToolkit() call.

On 9/23/2013 15:16, Sergey Bylokhov wrote:
> Hi, Leonid.
> Do you know why we need toolkit there?
> On 19.09.2013 16:35, Leonid Romanov wrote:
>> Hello,
>> This is a RFE from the Nashorn team to change AppleScriptEngine 
>> initialization from static to lazy, when app actually asks for 
>>  an AppleScriptEngine instance. They've requested it because 
>> AppleScriptEngine initialization triggers LWCToolkit initialization, 
>> which currently happens as a result of the whole scripting subsystem 
>> initialization, and this is something they want to avoid.
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8022555
>> Webrev: http://cr.openjdk.java.net/~leonidr/8022555/webrev.00/ 
>> <http://cr.openjdk.java.net/%7Eleonidr/8022555/webrev.00/>
>> Thanks,
>> Leonid.
> -- 
> Best regards, Sergey.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20130923/957ad03d/attachment.html 

More information about the awt-dev mailing list