From 11d5d8fffe41cc7daadbfa2ca98ecb978f3029af Mon Sep 17 00:00:00 2001 From: Jeff Hao Date: Wed, 26 Mar 2014 15:08:20 -0700 Subject: Add access checks to Method and Field reflection. Art side of this change. Has a corresponding libcore change. Bug: 13620925 Change-Id: Ie67f802a2a400e8212b489b9a261b7028422d8ba --- test/064-field-access/src/other/ProtectedClass.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test/064-field-access/src/other/ProtectedClass.java') 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() { } + } -- cgit v1.1