<AWT Dev> [8] Review Request for CR JDK-8020371 [macosx] applets with Drag and Drop fail with IllegalArgumentException
Artem Ananiev
artem.ananiev at oracle.com
Thu Jul 11 05:15:09 PDT 2013
Hi, Petr,
I'm not an expert in this code, so a few questions about the fix:
1. Are CDropTarget and CDragSourceContextPeer ready to handle the case,
when their nativePtr is 0?
2. Lines 110-113 in CDragSourceContextPeer should be better moved to
before line 140.
3. It's unclear if CDropTarget and CDragSourceContextPeer should be used
for lightweight components at all. How lightweight components are
handled on other platforms.?
Thanks,
Artem
On 7/11/2013 1:51 PM, Petr Pchelko wrote:
> Hello, AWT Team.
>
> Please review the fix for the issue:
> http://bugs.sun.com/view_bug.do?bug_id=8020371
> (It's recently created, so it might not be visible on bugs.sum.com yet)
> The fix is available at:
> http://cr.openjdk.java.net/~pchelko/8020371/webrev/
>
> The problem:
> We currently do not support DnD in applets on Mac, so IllegalArgumentException was thrown. If you explicitly call component.setDropTarget(new DropTarget()) the applet would fail to start due to this exception.
>
> The solution:
> The fix removes the exception and silently ignores unsupported DnD initialization.
> DnD does not start to work, however at least an applet could be started.
> However, I'm not sure if we should print a warning about unsupported DnD. What do you think?
>
> With best regards. Petr.
>
More information about the awt-dev
mailing list