<AWT Dev> <AWT dev>[9] Review request for JDK-8156099: [macosx] Drag and drop of link from web browser, DataFlavor types application/x-java-url and text/uri-list, getTransferData returns null
Mikhail Cherkasov
mikhail.cherkasov at oracle.com
Wed Aug 3 12:00:10 UTC 2016
Hi Manajit,
The fix looks good.
Thanks,
Mikhail.
On 01.08.2016 12:35, Manajit Halder wrote:
> Hi All,
>
> Kindly review the fix for JDK9.
>
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8156099
>
> Webrev:
> http://cr.openjdk.java.net/~mhalder/8156099/webrev.00/
> <http://cr.openjdk.java.net/%7Emhalder/8156099/webrev.00/>
>
> Issue:
> [macosx] Drag and drop of link from web browser, DataFlavor types
> application/x-java-url and text/uri-list, getTransferData returns null
>
> Cause:
> This issue is a regression of issue
> https://bugs.openjdk.java.net/browse/JDK-8136763.
> While adding fix to 8136763 code was modified to handle coping of
> multiple files but proper distinction was not added between bytes
> containing files and urls.
>
> Fix:
> Fixed by comparing format of the bytes received for dataflavor
> "mimetype=text/uri-list".
> Fixed by distinguishing between bytes containing files and urls. In
> both cases the dataflavor contains same “mimetype=text/uri-list”, but
> the format is different.
> Format CF_FILE is only used in case of bytes containing files.
>
> Regards,
> Manajit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160803/40665c5a/attachment.html>
More information about the awt-dev
mailing list