diff options
author | Andreas Gampe <agampe@google.com> | 2015-05-05 15:25:12 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-05-05 15:25:12 +0000 |
commit | 10ba80d58272b0e767689113b4fe7e84831a42a6 (patch) | |
tree | 60e33415bd02bc24b29c468644a61ed65e6599b5 | |
parent | ece4a17e08d124f79538118e968004b8e36993e2 (diff) | |
parent | e912fd64f9f086d256651cf495c607f9dbcc7ff9 (diff) | |
download | libcore-10ba80d58272b0e767689113b4fe7e84831a42a6.zip libcore-10ba80d58272b0e767689113b4fe7e84831a42a6.tar.gz libcore-10ba80d58272b0e767689113b4fe7e84831a42a6.tar.bz2 |
Merge "Libcore: Correct IllegalAccessError class javadoc" into mnc-dev
-rw-r--r-- | luni/src/main/java/java/lang/IllegalAccessError.java | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/luni/src/main/java/java/lang/IllegalAccessError.java b/luni/src/main/java/java/lang/IllegalAccessError.java index 3f7cf86..582de12 100644 --- a/luni/src/main/java/java/lang/IllegalAccessError.java +++ b/luni/src/main/java/java/lang/IllegalAccessError.java @@ -18,8 +18,14 @@ package java.lang; /** - * Thrown when the VM notices that a program tries access a field - * which is not accessible from where it is referenced. + * Thrown when the runtime notices that a program tries to access a class or member + * which is not accessible from where it is referenced. Some examples are: + * <ul> + * <li>The superclass or an implemented interface is not accessible in the subclass. + * <li>Reading or writing an inaccessible field, e.g., a private field in another class. + * <li>Invoking an inaccessible method, e.g., the constructor of an inaccessible class, + * or a private method of another class. + * </ul> * <p> * Note that this can only occur when inconsistent class files have been loaded. */ |