Remove LambdaForm$Hidden annotation from emitted code#118
Remove LambdaForm$Hidden annotation from emitted code#118luontola merged 1 commit intoluontola:masterfrom
Conversation
|
We encountered |
|
@simophin With or without this fix? |
|
@Yarikx I believe your PR will fix this issue. Haven't tried tho, waiting to be merged. In the mean time we just replace the lambdas with anonymous classes. |
|
@simophin Looking at another PRs are not merged yet, I don't think it will be merged soon. |
|
@Yarikx, @simophin I have also run into this issue on Android 4.1 and 4.2. Your PR worked wonderfully! For anyone else who runs into this issue, as this has yet to be merged, I suggest building your own JAR using this branch. I compiled the JAR using the docker container without any issues (follow the instructions here). If you are using the Retrolambda Gradle plugin, follow the instructions found here to use the local JAR instead. |
|
Thanks. I changed the code to only search for the LambdaForm$Hidden annotation inside the generated lambda classes instead of all classes. I'm assuming that the annotation doesn't appear anywhere else. |
|
This has been included in Retrolambda 2.4.0. Sorry about taking so long to merge. |
This annotation annotates some lambda methods.
It is not preserved in runtime, so it compiles fine, but create some issues for proguard.
This annotation does not exist in JDK6/7 so can be completely removed.
Related issues:
evant/gradle-retrolambda#55
AntennaPod/AntennaPod#1117
yongjhih/RxBolts#3