diff --git a/src/macosx/classes/sun/lwawt/macosx/CDataTransferer.java b/src/macosx/classes/sun/lwawt/macosx/CDataTransferer.java index 429a395130f1d5d0f18d203603a4f2a45ecebc3e..73a88753a8e9159650c89d8b6c8748bf3530ce11 100644 --- a/src/macosx/classes/sun/lwawt/macosx/CDataTransferer.java +++ b/src/macosx/classes/sun/lwawt/macosx/CDataTransferer.java @@ -147,8 +147,7 @@ public class CDataTransferer extends DataTransferer { 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); } diff --git a/test/java/awt/datatransfer/DataFlavor/MacOsXFileAndMultipleFileCopingTest/MacOsXFileAndMultipleFileCopingTest.java b/test/java/awt/datatransfer/DataFlavor/MacOsXFileAndMultipleFileCopingTest/MacOsXFileAndMultipleFileCopingTest.java index 18b70121aab8ec4f2264c0e52e19873bb9fb948a..eaa13646c9b898f77c984921788ff9d0cae32e7d 100644 --- a/test/java/awt/datatransfer/DataFlavor/MacOsXFileAndMultipleFileCopingTest/MacOsXFileAndMultipleFileCopingTest.java +++ b/test/java/awt/datatransfer/DataFlavor/MacOsXFileAndMultipleFileCopingTest/MacOsXFileAndMultipleFileCopingTest.java @@ -23,7 +23,7 @@ /* @test - @bug 8081787 8136763 + @bug 8081787 8136763 8160941 @author Mikhail Cherkasov @run main/manual MacOsXFileAndMultipleFileCopingTest */