reflect: Remove illegal invoke-direct to Proxy private method
With the current proxy implementation, the Proxy constructor
is copied into each new Proxy Class instance.
Calling #doNewInstanceCheck from non-Proxy classes is therefore
illegal dex opcode.
This was sliding through before since the constructor was already marked
verified and copying it did not trigger re-verification.
As the actual method call is a no-op (there is no SecurityManager in
Android, so it just returns) remove this call.
(Note, this only needs to be paired with the art CL of the same
change-id to fix a runtest. It will build without the other CL).
Bug: 26846861
Bug: 22414682
Change-Id: I28c3707e38c1f69ea9d3660f68136f688122ac4e
1 file changed