8058793: Test sun/awt/datatransfer/DataFlavorComparatorTest.java fails with compilation error
authorkshefov
Wed, 14 Jan 2015 13:43:12 +0300
changeset 28421 8b4f4f0de688
parent 28420 8fe17d073b54
child 28422 a571480286c5
8058793: Test sun/awt/datatransfer/DataFlavorComparatorTest.java fails with compilation error Reviewed-by: alexsch, azvegint Contributed-by: srinivasan.raghavan@oracle.com
jdk/test/sun/awt/datatransfer/DataFlavorComparatorTest.java
--- a/jdk/test/sun/awt/datatransfer/DataFlavorComparatorTest.java	Tue Jan 13 14:33:54 2015 -0800
+++ b/jdk/test/sun/awt/datatransfer/DataFlavorComparatorTest.java	Wed Jan 14 13:43:12 2015 +0300
@@ -29,13 +29,14 @@
 */
 
 import sun.awt.datatransfer.DataTransferer;
-
+import java.util.Comparator;
+import sun.datatransfer.DataFlavorUtil;
 import java.awt.datatransfer.DataFlavor;
 
 public class DataFlavorComparatorTest {
 
     public static void main(String[] args) {
-        DataTransferer.DataFlavorComparator comparator = new DataTransferer.DataFlavorComparator();
+        Comparator<DataFlavor> comparator = DataFlavorUtil.getDataFlavorComparator();
         DataFlavor flavor1 = DataFlavor.imageFlavor;
         DataFlavor flavor2 = DataFlavor.selectionHtmlFlavor;
         if (comparator.compare(flavor1, flavor2) == 0) {