summaryrefslogtreecommitdiff
path: root/debian/patches/dnd-files.patch
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2017-05-12 22:48:36 +0300
committerIgor Pashev <pashev.igor@gmail.com>2017-05-12 22:48:36 +0300
commit37d630875d33bf3c291026c40bb08d1b6c9edcc8 (patch)
tree68fb026f54a962cf1d631f010e98681add6ed014 /debian/patches/dnd-files.patch
downloadopenjdk-8-debian.tar.gz
Imported debian/openjdk-8_8u131-b11-1debian/8u131-b11-1debian
Diffstat (limited to 'debian/patches/dnd-files.patch')
-rw-r--r--debian/patches/dnd-files.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/debian/patches/dnd-files.patch b/debian/patches/dnd-files.patch
new file mode 100644
index 0000000..e900ae8
--- /dev/null
+++ b/debian/patches/dnd-files.patch
@@ -0,0 +1,20 @@
+--- a/jdk/src/solaris/classes/sun/awt/X11/XDataTransferer.java
++++ b/jdk/src/solaris/classes/sun/awt/X11/XDataTransferer.java
+@@ -282,14 +282,14 @@ public class XDataTransferer extends Dat
+ reader = new BufferedReader(new InputStreamReader(stream, charset));
+ String line;
+ ArrayList<URI> uriList = new ArrayList<URI>();
+- URI uri;
+ while ((line = reader.readLine()) != null) {
+ try {
+- uri = new URI(line);
++ if (!"\0".equals(line)) {
++ uriList.add(new URI(line));
++ }
+ } catch (URISyntaxException uriSyntaxException) {
+ throw new IOException(uriSyntaxException);
+ }
+- uriList.add(uri);
+ }
+ return uriList.toArray(new URI[uriList.size()]);
+ } finally {