[libbluray-devel] BDFileSystem: fix Java 9 compatibility

hpi1 git at videolan.org
Sat Dec 16 10:16:30 CET 2017


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Dec 13 11:27:21 2017 +0200| [6efb9b951e081de17b4a784e9f3b5cb98a4556b6] | committer: hpi1

BDFileSystem: fix Java 9 compatibility

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

 src/libbluray/bdj/java-j2se/java/io/BDFileSystemImpl.java | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/libbluray/bdj/java-j2se/java/io/BDFileSystemImpl.java b/src/libbluray/bdj/java-j2se/java/io/BDFileSystemImpl.java
index 2ea362fb..a814d98d 100644
--- a/src/libbluray/bdj/java-j2se/java/io/BDFileSystemImpl.java
+++ b/src/libbluray/bdj/java-j2se/java/io/BDFileSystemImpl.java
@@ -38,4 +38,9 @@ class BDFileSystemImpl extends BDFileSystem {
     public long getSpace(File f, int t) {
         return fs.getSpace(f, t);
     }
+
+    /* Java 9 */
+    public int getNameMax(String path) {
+        return 255;
+    }
 }



More information about the libbluray-devel mailing list