When the manipulator manipulates inner classes, the copied method are reusing the same access level than the initial (original method). For instance
is replaced by
. However, reusing the same access level leads to a (missing) mediation on the invoke instruction we need to use to invoke this method. Despite this is working on traditional JVM (Oracle, HotSpot...), it fails on Dalvik.
The fix is straightforward. Copied methods should be private:
Thus, we just need to use the