Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proguard still fails with retrolambda 2.5.1 targeting Java 7 #132

Open
Perseverance1139 opened this issue May 3, 2017 · 1 comment
Open

Comments

@Perseverance1139
Copy link

Proguard reports error for each lambda usage:
can't find referenced class java.lang.invoke.MethodHandles$Lookup
can't find referenced class java.lang.invoke.MethodHandles

It is an android application.

Looking at this line here, I wonder should we remove methodhandles for Java 7 as well?
https://github.com/orfjackal/retrolambda/blob/6d5a4c1fd9d094452cfde2096a81ab82a0c1c9ce/retrolambda/src/main/java/net/orfjackal/retrolambda/Transformers.java#L116

Thanks!

@luontola
Copy link
Owner

Methodhandles were added in Java 7 (https://docs.oracle.com/javase/7/docs/api/java/lang/invoke/MethodHandles.html), but maybe Android's "Java 7" is not really Java 7 compatible and is missing some APIs. Does it work if you instead target Java 6?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants