forked from pool/libbluray
Fix build with post-April 2022 CPU java versions OBS-URL: https://build.opensuse.org/request/show/971874 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libbluray?expand=0&rev=88
21 lines
746 B
Diff
21 lines
746 B
Diff
--- libbluray-1.3.1/src/libbluray/bdj/java/java/io/BDFileSystem.java 2022-03-03 18:05:27.000000000 +0100
|
|
+++ libbluray-1.3.1/src/libbluray/bdj/java/java/io/BDFileSystem.java 2022-04-21 17:35:16.594935352 +0200
|
|
@@ -227,6 +227,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 (!booted)
|
|
return fs.resolve(f);
|