8058635: [TEST_BUG] sun/awt/datatransfer/SuplementaryCharactersTransferTest.java fails with Compilation error
authorkshefov
Fri, 19 Sep 2014 13:00:17 +0400
changeset 26718 d0a67c728876
parent 26717 d65c07a65486
child 26719 2aa1709a8043
8058635: [TEST_BUG] sun/awt/datatransfer/SuplementaryCharactersTransferTest.java fails with Compilation error Reviewed-by: serb, alexsch Contributed-by: pooja.chopra@oracle.com
jdk/test/sun/awt/datatransfer/SuplementaryCharactersTransferTest.java
--- a/jdk/test/sun/awt/datatransfer/SuplementaryCharactersTransferTest.java	Fri Sep 19 09:59:36 2014 +0200
+++ b/jdk/test/sun/awt/datatransfer/SuplementaryCharactersTransferTest.java	Fri Sep 19 13:00:17 2014 +0400
@@ -35,6 +35,7 @@
 import java.awt.datatransfer.*;
 import sun.awt.datatransfer.*;
 import sun.awt.datatransfer.DataTransferer.ReencodingInputStream;
+import sun.datatransfer.DataFlavorUtil;
 
 public class SuplementaryCharactersTransferTest {
 
@@ -46,7 +47,7 @@
         dataTransferer.registerTextFlavorProperties("UNICODE TEXT", "utf-16le", "\r\n", "2");
         ByteTransferable transferable = new ByteTransferable();
         ReencodingInputStream is = dataTransferer.new ReencodingInputStream(transferable.getByteInputStream(), TEXT_FORMAT,
-                DataTransferer.getTextCharset(transferable.getDataFlavor()), transferable);
+                DataFlavorUtil.getTextCharset(transferable.getDataFlavor()), transferable);
 
         byte[] bytes = transferable.getBytes();
         byte[] result = new byte[bytes.length];
@@ -161,4 +162,5 @@
             throw new UnsupportedOperationException("Not supported yet.");
         }
     }
-}
\ No newline at end of file
+}
+