src/share/classes/sun/awt/datatransfer/DataTransferer.java

Print this page

        

@@ -71,10 +71,11 @@
 import java.security.PrivilegedExceptionAction;
 import java.security.ProtectionDomain;
 
 import java.util.*;
 
+import sun.awt.ComponentFactory;
 import sun.util.logging.PlatformLogger;
 
 import sun.awt.AppContext;
 import sun.awt.SunToolkit;
 

@@ -226,11 +227,11 @@
      * The accessor method for the singleton DataTransferer instance. Note
      * that in a headless environment, there may be no DataTransferer instance;
      * instead, null will be returned.
      */
     public static synchronized DataTransferer getInstance() {
-        return ((SunToolkit) Toolkit.getDefaultToolkit()).getDataTransferer();
+        return ((ComponentFactory) Toolkit.getDefaultToolkit()).getDataTransferer();
     }
 
     /**
      * Converts an arbitrary text encoding to its canonical name.
      */