summaryrefslogtreecommitdiffstats
path: root/luni-kernel
diff options
context:
space:
mode:
authorJesse Wilson <jessewilson@google.com>2010-01-07 16:25:59 -0800
committerJesse Wilson <jessewilson@google.com>2010-01-07 16:29:58 -0800
commitc9a29bea2462417ebe58bdd3b4f6514d67b53610 (patch)
tree7a8639daa748e89a13ca6d8bf2b9b4c6f0be5790 /luni-kernel
parentfa5f3fa1332cc6c79707125744a274403e1da425 (diff)
downloadlibcore-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.java10
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