changeset 10697:bc634b478766

8058635: [TEST_BUG] sun/awt/datatransfer/SuplementaryCharactersTransferTest.java fails with Compilation error Reviewed-by: serb, alexsch Contributed-by: pooja.chopra@oracle.com
author kshefov
date Fri, 19 Sep 2014 13:00:17 +0400
parents ef539b8808f1
children 12e9ae2a63f5
files test/sun/awt/datatransfer/SuplementaryCharactersTransferTest.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/awt/datatransfer/SuplementaryCharactersTransferTest.java	Fri Sep 19 09:59:36 2014 +0200
+++ b/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
+}
+