<AWT Dev> [15] Review Request: JDK-8236506 [macosx] Some datatransfer classes were loaded on startup

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Mon Dec 23 19:34:36 UTC 2019


Done.
Bug: https://bugs.openjdk.java.net/browse/JDK-8236506
Fix: http://cr.openjdk.java.net/~serb/8078107/webrev.00

On 12/23/19 9:31 pm, Phil Race wrote:
> Looks fine - for JDK 15. It is unfortunate that the JBS issue can't be made public.
> Perhaps you could file a new one, close this as a dup, and then push under the new open bug ?
> 
> -phil.
> 
> On 12/4/19 3:02 AM, Sergey Bylokhov wrote:
>> Hello.
>> Please review the fix for JDK 14.
>>
>> Bug: https://bugs.openjdk.java.net/browse/JDK-8078107
>> Fix: http://cr.openjdk.java.net/~serb/8078107/webrev.00
>>
>> This bug is an exact copy of JDK-4915454[1] but on macOS, because
>> implementation of the text components in LWAWT and XAWT is similar,
>> both use Swing internally.
>>
>> The root cause is that DnD in the Swing text components is enabled
>> by default unlike text components in AWT which does not use
>> this Swing based DnD and as such loading of these classes is unnecessary.
>>
>> The fix is the same as for JDK-4915454(+I made small code cleanup).
>>
>>
>> [1] https://bugs.openjdk.java.net/browse/JDK-4915454
>>
> 


-- 
Best regards, Sergey.


More information about the awt-dev mailing list