From e912fd64f9f086d256651cf495c607f9dbcc7ff9 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Thu, 30 Apr 2015 10:49:11 -0700 Subject: Libcore: Correct IllegalAccessError class javadoc IllegalAccessError can be thrown in more than one case. Correct the class documentation to be general, and state example cases of the error. Bug: 19997575 Change-Id: I8b14d8b2fcd77f547d377bec2eecc326743fb671 --- luni/src/main/java/java/lang/IllegalAccessError.java | 10 ++++++++-- 1 file 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: + * *

* Note that this can only occur when inconsistent class files have been loaded. */ -- cgit v1.1