8058635: [TEST_BUG] sun/awt/datatransfer/SuplementaryCharactersTransferTest.java fails with Compilation error
Reviewed-by: serb, alexsch
Contributed-by: pooja.chopra@oracle.com
--- 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
+}
+