changeset 10317:f19e4c4a0297

8066986: [headless] DataTransferer.getInstance throws ClassCastException in headless mode Reviewed-by: alexsch, serb
author azvegint
date Tue, 09 Dec 2014 18:57:49 +0300
parents 655876e27e00
children 8afb48d60399
files src/share/classes/sun/awt/datatransfer/DataTransferer.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/awt/datatransfer/DataTransferer.java	Tue Dec 09 17:06:31 2014 +0300
+++ b/src/share/classes/sun/awt/datatransfer/DataTransferer.java	Tue Dec 09 18:57:49 2014 +0300
@@ -274,7 +274,7 @@
      * instead, null will be returned.
      */
     public static synchronized DataTransferer getInstance() {
-        return ((SunToolkit) Toolkit.getDefaultToolkit()).getDataTransferer();
+        return ((ComponentFactory) Toolkit.getDefaultToolkit()).getDataTransferer();
     }
 
     /**