<AWT Dev> [9] Review Request: 8042219 [macosx] LWComponentPeer should not reference classes from sun.lwawt.macosx

Petr Pchelko petr.pchelko at oracle.com
Wed May 7 09:53:36 UTC 2014


Hello, Sergey.

Please see the updated webrev here:
http://cr.openjdk.java.net/~pchelko/9/8042219/webrev.01/

> 1)     if (fDropTarget != null)
>         1065                         System.err.println("CComponent.addDropTarget(): current drop target is non-null.");
>  Should we throw an exception instead or dispose the previous drop target?

Fixed.

> 2) We can create/dispose DT on any thread?
Looks like yes. The caller (LWComponent) is doing all the necessary synchronization.

> 3)   {@inheritDoc} is obvious if no additional information is added.
Fixed.

With best regards. Petr.

On 30.04.2014, at 17:58, Sergey Bylokhov <Sergey.Bylokhov at oracle.com> wrote:

> Hi, Petr.
> A few comments:
> 
> 1)     if (fDropTarget != null)
>         1065                         System.err.println("CComponent.addDropTarget(): current drop target is non-null.");
>  Should we throw an exception instead or dispose the previous drop target?
> 2) We can create/dispose DT on any thread?
> 3)   {@inheritDoc} is obvious if no additional information is added.
> 
> On 4/30/14 5:33 PM, Petr Pchelko wrote:
>> Hello, AWT Team.
>> 
>> Please review a simple cleanup fix for the issue:
>> https://bugs.openjdk.java.net/browse/JDK-8042219
>> The fix is available here:
>> http://cr.openjdk.java.net/~pchelko/9/8042219/webrev/
>> 
>> We should not reference macosx classes in lwawt package. I've also cleaned up CDropTarget class a bit.
>> 
>> Thank you.
>> With best regards. Petr.
> 
> 
> -- 
> Best regards, Sergey. 

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


More information about the awt-dev mailing list