summaryrefslogtreecommitdiffstats
path: root/test/064-field-access/src/other/ProtectedClass.java
diff options
context:
space:
mode:
authorJeff Hao <jeffhao@google.com>2014-03-26 15:08:20 -0700
committerJeff Hao <jeffhao@google.com>2014-03-28 14:27:55 -0700
commit11d5d8fffe41cc7daadbfa2ca98ecb978f3029af (patch)
treefae2cf974b502420a942043d135d301aa75967e7 /test/064-field-access/src/other/ProtectedClass.java
parenta708e32a9f764a48175e705ec4bcd2201c84f492 (diff)
downloadart-11d5d8fffe41cc7daadbfa2ca98ecb978f3029af.zip
art-11d5d8fffe41cc7daadbfa2ca98ecb978f3029af.tar.gz
art-11d5d8fffe41cc7daadbfa2ca98ecb978f3029af.tar.bz2
Add access checks to Method and Field reflection.
Art side of this change. Has a corresponding libcore change. Bug: 13620925 Change-Id: Ie67f802a2a400e8212b489b9a261b7028422d8ba
Diffstat (limited to 'test/064-field-access/src/other/ProtectedClass.java')
-rw-r--r--test/064-field-access/src/other/ProtectedClass.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/064-field-access/src/other/ProtectedClass.java b/test/064-field-access/src/other/ProtectedClass.java
index 779aa1d..756c97f 100644
--- a/test/064-field-access/src/other/ProtectedClass.java
+++ b/test/064-field-access/src/other/ProtectedClass.java
@@ -97,4 +97,10 @@ class ProtectedClass {
/* package */ static float otherProtectedClassPackageFloatStaticField = 63.0f;
/* package */ static double otherProtectedClassPackageDoubleStaticField = 64.0;
/* package */ static Object otherProtectedClassPackageObjectStaticField = "65";
+
+ public void otherPublicMethod() { }
+ protected void otherProtectedMethod() { }
+ private void otherPrivateMethod() { }
+ /* package */ void otherPackageMethod() { }
+
}