31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From 8f26777b1ce124ff761f80ef52d6be10bcea323e Mon Sep 17 00:00:00 2001
|
|
From: Fridrich Strba <fstrba@suse.com>
|
|
Date: Mon, 25 Apr 2022 14:28:58 +0300
|
|
Subject: [PATCH] Fix build failure after Oracle Java CPU for April 2022
|
|
|
|
---
|
|
src/libbluray/bdj/java/java/io/BDFileSystem.java | 11 +++++++++++
|
|
1 file changed, 11 insertions(+)
|
|
|
|
diff -aruN libbluray-1.0.2/src/libbluray/bdj/java/java/io/BDFileSystem.java libbluray-1.0.2.alma/src/libbluray/bdj/java/java/io/BDFileSystem.java
|
|
--- libbluray-1.0.2/src/libbluray/bdj/java/java/io/BDFileSystem.java 2017-12-03 18:25:55.000000000 +0300
|
|
+++ libbluray-1.0.2.alma/src/libbluray/bdj/java/java/io/BDFileSystem.java 2022-08-09 16:22:57.000000000 +0300
|
|
@@ -167,6 +167,17 @@
|
|
return fs.isAbsolute(f);
|
|
}
|
|
|
|
+ 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 String resolve(File f) {
|
|
if (!f.isAbsolute()) {
|
|
logger.info("resolve relative file " + f.getPath());
|