OSDN Git Service

Relax annotation visibility so runtime includes build.
authorJeff Hao <jeffhao@google.com>
Fri, 27 May 2016 01:39:17 +0000 (18:39 -0700)
committerJeff Hao <jeffhao@google.com>
Sat, 28 May 2016 00:27:28 +0000 (17:27 -0700)
commit3d0808655cd8cfbc867bf330bcc6f954c59beb9d
treee7e6e6c62562b6f19e0dbf7b2249a900a1938afa
parentd355b75ca09d83c47e596daeb1a434942de83bee
Relax annotation visibility so runtime includes build.

Previous behavior in M and earlier would allow annotations marked
VISIBILITY_BUILD to be visible to the runtime when they should not
have been. When targeting older sdks, revert to this behavior.

Bug: 28826610

(cherry-picked from commit 7e50a7a5a1ad947e84c425efb2e97c442f91b155)

Change-Id: I43d2328be41ec9f4e679b3151f586c0b87b38c7c
runtime/dex_file.cc
test/005-annotations/src/android/test/anno/TestAnnotations.java