<AWT Dev> [9] Review Request: 8039752 Regression: Clipboard couldn't be used on linux

Alexander Zvegintsev alexander.zvegintsev at oracle.com
Wed Apr 9 14:03:36 UTC 2014


Hi Petr,

the fix looks fine to me too.

Thanks,

Alexander.

On 04/09/2014 05:43 PM, Petr Pchelko wrote:
> Hello, AWT Team.
>
> Please review the fix for the issue:
> https://bugs.openjdk.java.net/browse/JDK-8039752
> The fix is available at:
> http://cr.openjdk.java.net/~pchelko/9/8039752/webrev/
>
> I've recently made this regression( The currentDataFlavors was moved to the Clipboard constructor,
> but it could possibly call overridable methods which could use the system clipboard. And it's not
> constructed at this time which causes an NPE on Linux.
>
> In this fix I'm moving back to lazy initialization of the flavorListeners and currentDataFlavors.
>
> FYI: here's the fix that caused this regression: http://cr.openjdk.java.net/~pchelko/9/6463901/webrev.02/
>
> With best regards. Petr.



More information about the awt-dev mailing list