changeset 11840:131e388abc48

8160941: "text/uri-list" dataflavor concats the first two strings Reviewed-by: mcherkas, alexsch
author rstevens
date Fri, 15 Jul 2016 22:36:46 +0300
parents fab9a5842fad
children ec4b8831ddb7
files src/macosx/classes/sun/lwawt/macosx/CDataTransferer.java test/java/awt/datatransfer/DataFlavor/MacOsXFileAndMultipleFileCopingTest/MacOsXFileAndMultipleFileCopingTest.java
diffstat 2 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/macosx/classes/sun/lwawt/macosx/CDataTransferer.java	Fri Jul 15 19:24:17 2016 +0300
+++ b/src/macosx/classes/sun/lwawt/macosx/CDataTransferer.java	Fri Jul 15 22:36:46 2016 +0300
@@ -147,8 +147,7 @@
             String separator = System.getProperty("line.separator");
             StringBuilder sb = new StringBuilder();
             if(strings.length > 0) {
-                sb.append(strings[0]);
-                for(int i = 1; i < strings.length; i++) {
+                for(int i = 0; i < strings.length; i++) {
                     sb.append(strings[i]);
                     sb.append(separator);
                 }
--- a/test/java/awt/datatransfer/DataFlavor/MacOsXFileAndMultipleFileCopingTest/MacOsXFileAndMultipleFileCopingTest.java	Fri Jul 15 19:24:17 2016 +0300
+++ b/test/java/awt/datatransfer/DataFlavor/MacOsXFileAndMultipleFileCopingTest/MacOsXFileAndMultipleFileCopingTest.java	Fri Jul 15 22:36:46 2016 +0300
@@ -23,7 +23,7 @@
 
 /*
   @test
-  @bug 8081787 8136763
+  @bug 8081787 8136763 8160941
   @author Mikhail Cherkasov
   @run main/manual MacOsXFileAndMultipleFileCopingTest
 */