Hi Petr,
Clipboard is a part of AWT API. The AWT is a multi-threaded GUI toolkit,
which means that users can call Clipboard's methods on any thread. If we
remove invokeLater(), we break this contract, which I'm not sure we want
to do.
--
best regards,
Anthony
On 4/7/2014 5:16 PM, Petr Pchelko wrote:
Hello, AWT Team.
Please review the fix for the issue:
https://bugs.openjdk.java.net/browse/JDK-8039377
The fix is here:
http://cr.openjdk.java.net/~pchelko/9/8039377/webrev.00/
The problem: Clipboard depend on the EventQueue. The solution - remove the
invokeLater. The Clipboard object is used only as a Swing sandbox clipboard
which is used from the EDT.
The user can't use in as the System clipboard, so there's no worries about the
callback being executed on some privileged thread. So we can simply remove the
invokeLater here.
With best regards. Petr.