Commit 987c9cae authored by Narayan Kamath's avatar Narayan Kamath
Browse files

ObjectStreamClass: Add a workaround for abusers of private API.

- ObjectStreamClass.getConstructorId(Class<?>) : returns a constant.
- ObjectStreamClass.newInstance(Class<?>, long) : calls through to
sun.misc.Unsafe.allocateInstance.

*** THIS CHANGE WILL BE REVERTED IN A FUTURE ANDROID RELEASE ***

bug: 28106822

Change-Id: I8c584b11e6779880a61dd2bc462e1a380e86ec89
parent bcf10730
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment