[libbluray-devel] BDToolkit: fix compatibiliy with Java < 9

hpi1 git at videolan.org
Fri Aug 31 13:21:05 CEST 2018


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Aug 31 14:11:16 2018 +0300| [dbb9c7fc1690edd4baa8e0bb4b7d07b8700762d9] | committer: hpi1

BDToolkit: fix compatibiliy with Java < 9

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=dbb9c7fc1690edd4baa8e0bb4b7d07b8700762d9
---

 src/libbluray/bdj/java-j2se/java/awt/BDToolkit.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/libbluray/bdj/java-j2se/java/awt/BDToolkit.java b/src/libbluray/bdj/java-j2se/java/awt/BDToolkit.java
index 6f6c7fec..50b61bb8 100644
--- a/src/libbluray/bdj/java-j2se/java/awt/BDToolkit.java
+++ b/src/libbluray/bdj/java-j2se/java/awt/BDToolkit.java
@@ -24,6 +24,7 @@ import java.awt.peer.KeyboardFocusManagerPeer;
 
 import sun.awt.ComponentFactory;
 import sun.awt.KeyboardFocusManagerPeerProvider;
+import sun.awt.datatransfer.DataTransferer;
 
 import java.awt.peer.BDFramePeer;
 import java.awt.peer.BDKeyboardFocusManagerPeer;
@@ -185,4 +186,9 @@ public class BDToolkit extends BDToolkitBase
         logger.unimplemented();
         throw new Error("Not implemented");
     }
+
+    /* required for Java < 9 */
+    public DataTransferer getDataTransferer() {
+        return null;
+    }
 }



More information about the libbluray-devel mailing list