1
0
Fork 0

Silence runtime warning

This commit is contained in:
hpi1 2019-02-05 11:12:27 +02:00
parent 8793daad24
commit b2d5b09302
1 changed files with 7 additions and 1 deletions

View File

@ -53,6 +53,8 @@ public class Libbluray {
/* hook system properties: make "user.dir" point to current Xlet home directory */
private static boolean booted;
private static void hookProperties() {
java.util.Properties p = new java.util.Properties(System.getProperties()) {
public String getProperty(String key) {
@ -61,7 +63,9 @@ public class Libbluray {
if (ctx != null) {
return ctx.getXletHome();
}
System.err.println("getProperty(user.dir): no context ! " + Logger.dumpStack());
if (booted) {
System.err.println("getProperty(user.dir): no context ! " + Logger.dumpStack());
}
}
return super.getProperty(key);
}
@ -338,6 +342,8 @@ public class Libbluray {
loadAdapter(System.getProperty("org.videolan.loader.adapter"));
loadAdapter(pkg);
booted = true;
}
/* called only from native code */