diff options
author | Jesse Wilson <jessewilson@google.com> | 2010-01-07 16:25:59 -0800 |
---|---|---|
committer | Jesse Wilson <jessewilson@google.com> | 2010-01-07 16:29:58 -0800 |
commit | c9a29bea2462417ebe58bdd3b4f6514d67b53610 (patch) | |
tree | 7a8639daa748e89a13ca6d8bf2b9b4c6f0be5790 /luni-kernel | |
parent | fa5f3fa1332cc6c79707125744a274403e1da425 (diff) | |
download | libcore-c9a29bea2462417ebe58bdd3b4f6514d67b53610.zip libcore-c9a29bea2462417ebe58bdd3b4f6514d67b53610.tar.gz libcore-c9a29bea2462417ebe58bdd3b4f6514d67b53610.tar.bz2 |
The SecurityManager doesn't work, so advertise that shouldn't be used.
Diffstat (limited to 'luni-kernel')
-rw-r--r-- | luni-kernel/src/main/java/java/lang/System.java | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/luni-kernel/src/main/java/java/lang/System.java b/luni-kernel/src/main/java/java/lang/System.java index b97a75a..aa78b1b 100644 --- a/luni-kernel/src/main/java/java/lang/System.java +++ b/luni-kernel/src/main/java/java/lang/System.java @@ -603,10 +603,14 @@ public final class System { } /** - * Sets the active security manager. Note that once the security manager has - * been set, it can not be changed. Attempts to do that will cause a + * <strong>Warning:</strong> security managers do <strong>not</strong> + * provide a secure environment for executing untrusted code. Untrusted code + * cannot be safely isolated within the Dalvik VM. + * + * <p>Sets the active security manager. Note that once the security manager + * has been set, it can not be changed. Attempts to do that will cause a * security exception. - * + * * @param sm * the new security manager. * @throws SecurityException |