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>
Fri, 27 May 2016 23:56:39 +0000 (16:56 -0700)
commit7e50a7a5a1ad947e84c425efb2e97c442f91b155
tree17e142253f4fe62e7e94dcca6996103759a7ec6e
parent5eda8d2a60e8da89336e2a1eba5fd2f7edaf2e1b
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
Change-Id: I95e10da899ed11107ca78c62dd2e263808008310
runtime/dex_file.cc
test/005-annotations/src/android/test/anno/TestAnnotations.java