Fix constructor access check through reflection

We must not throw IllegalAccessException if the constructor has been
made accessible by a previous call to Constructor.setAccessible, even
if the caller cannot access the constructor.

Bug: 20639158

(cherry picked from commit 2d2f2a9c665b02ca5139f71e37ca5e08389e4191)

Change-Id: Ic5cb54256f11aefcfaa99f2ee85c4a32f30e693a
2 files changed