<AWT Dev>  Review request for: [macosx] java always returns only one value for "text/uri-list" dataflavor even if several files were copied
mikhail.cherkasov at oracle.com
Mon Sep 21 14:19:48 UTC 2015
Please review fix for JDK9:
The problem is similar to https://bugs.openjdk.java.net/browse/JDK-8081787
When user requests data for uri-list flavor, java returns xml without
It is fixed by processing xml by dragQueryFile() method.
The other problem: if several files has been copied, there're available
two types in pasteboard for reading:
but text/uri-list is associated only with NSURLPboardType - which
returns only first value from list of files that were copied.
To resolve this I added:
"FILE_NAME=text/uri-list;eoln="\r\n";terminators=1" line above
So now, java will select secend one and provide the full list of copied
More information about the awt-dev