Signed-off-by: herengui <herengui@uniontech.com> (cherry picked from commit af65f3f74b6e8e65755ed64c9a72ac9c1f05bfa9)
36 lines
1.2 KiB
Diff
36 lines
1.2 KiB
Diff
From 1f291c9c665debc7ddbc52c47c0a43dc72eec7b3 Mon Sep 17 00:00:00 2001
|
|
From: herengui <herengui@uniontech.com>
|
|
Date: Thu, 19 May 2022 18:16:53 +0800
|
|
Subject: [PATCH] Fix build with recent JDK version
|
|
|
|
Signed-off-by: herengui <herengui@uniontech.com>
|
|
---
|
|
src/libbluray/bdj/java/java/io/BDFileSystem.java | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
|
|
diff --git a/src/libbluray/bdj/java/java/io/BDFileSystem.java b/src/libbluray/bdj/java/java/io/BDFileSystem.java
|
|
index 0ade43e..65b0f47 100644
|
|
--- a/src/libbluray/bdj/java/java/io/BDFileSystem.java
|
|
+++ b/src/libbluray/bdj/java/java/io/BDFileSystem.java
|
|
@@ -203,6 +203,17 @@ public abstract class BDFileSystem extends FileSystem {
|
|
return fs.fromURIPath(path);
|
|
}
|
|
|
|
+ public boolean isInvalid(File f) {
|
|
+ try {
|
|
+ Method m = fs.getClass().getDeclaredMethod("isInvalid", new Class[] { File.class });
|
|
+ Object[] args = new Object[] {(Object)f};
|
|
+ Boolean result = (Boolean)m.invoke(fs, args);
|
|
+ return result.booleanValue();
|
|
+ } finally {
|
|
+ return false;
|
|
+ }
|
|
+ }
|
|
+
|
|
public boolean isAbsolute(File f) {
|
|
return fs.isAbsolute(f);
|
|
}
|
|
--
|
|
2.20.1
|
|
|