src/share/classes/java/util/logging/FileHandler.java
Print this page
@@ -533,11 +533,11 @@
ix++;
word = "";
continue;
} else if (ch2 == 'h') {
file = new File(System.getProperty("user.home"));
- if (isSetUID()) {
+ if (sun.misc.VM.isSetUID()) {
// Ok, we are in a set UID program. For safety's sake
// we disallow attempts to open files relative to %h.
throw new IOException("can't use %h in set UID program");
}
ix++;
@@ -667,11 +667,6 @@
@Override
public void error(String msg, Exception ex, int code) {
lastException = ex;
}
}
-
- /**
- * check if we are in a set UID program.
- */
- private static native boolean isSetUID();
}