We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hesitate to call this a bug but I'll report this here as it took many hours to track down.
We have an interface that contains a static field DEFAULT which is an instance of the interface itself as in:
public MyInterface { int foo(int a); MyInterface DEFAULT = ... }
Originally the value for default was an anoymous inner class as in:
MyInteface DEFAULT = new MyInterface() { pubic int foo(int a) { return someCall(a); } }
which worked find. After adding retrolambda to the project, Android Studio said we should convert that to a lambda expression like in:
MyInteface DEFAULT = a -> someCall(a);
The result is that this worked on Lollipop, but crashes with a verify error on pre-Lollipop.
Not sure if you can make this work, but if not you could at least fail the build if you detect it.
The text was updated successfully, but these errors were encountered:
Hey, in fact this was an issue and is already fixed in v1.8.1. Take a look at #42
Sorry, something went wrong.
Confirmed that 1.8.1 fixed the issue.
No branches or pull requests
Hesitate to call this a bug but I'll report this here as it took many hours to track down.
We have an interface that contains a static field DEFAULT which is an instance of the interface itself as in:
Originally the value for default was an anoymous inner class as in:
which worked find. After adding retrolambda to the project, Android Studio said we should convert that to a lambda expression like in:
The result is that this worked on Lollipop, but crashes with a verify error on pre-Lollipop.
Not sure if you can make this work, but if not you could at least fail the build if you detect it.
The text was updated successfully, but these errors were encountered: