Rename Binder.destroy() to Binder.destroyBinder().
There are a few AIDL-generated stubs that perform "destroy" transactions and call "this.destroy()". Previously, this resolved to the "destroy()" method from their interface on ART while resolving to Binder.destroy() on the RI, though this is a subject of a bug report against the JDK, http://bugs.java.com/bugdatabase/view_bug.do?bug_id=8021581 . Resolving to the private Binder.destroy, inaccessible to the Stub, would lead to throwing IllegalAccessErrror. As we're changing the method lookup to be closer to RI, see https://android-review.googlesource.com/413119 , we should stay clear of the problematic cases whether we make a decision to follow the RI precisely or not. Therefore we rename the Binder.destroy() to Binder.destroyBinder(). Test: Nexus 6P boots. Bug: 62855082 Change-Id: I43baf76b6f3c681d93b411cecf2bc00fccafecac
Loading
Please register or sign in to comment