Skip to content

Android: having a method reference to a private method causes normal method invocations to fail #18

Closed
@luontola

Description

@luontola

See #17 (comment)

It might have to do with the normal method call still using invokespecial even though Retrolambda changes the method's visibility from private to package-private. Oracle JVM doesn't mind it, but maybe Android does.

Reproducing: https://github.com/naixx/PrivateMethodAndroidBug

set ANDROID_HOME=...\adt-bundle-windows-x86_64-20140321\sdk
[in "AVD Manager.exe" create virtual device and start the emulator]
adt-bundle-windows-x86_64-20140321\sdk\tools\monitor.bat

gradlew clean build
adt-bundle-windows-x86_64-20140321\sdk\platform-tools\adb.exe install -r app\build\apk\app-debug-unaligned.apk
[start the TestBug app in the emulator]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions