You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I cannot share the full code, but it seems there's a regression over 2.1.0 that causes it to produce incorrect code.
The error is like this:
I set a click listener like this view.findViewById(R.id.saveButton).setOnClickListener( v -> onSaveClick());
and the onSaveClick is called when I click some other view. (looks like generated classes are somehow mixed up…)
If I replace this lambda with "good&old" anonymous class, then it works correctly.
It also works correctly with retrolambda 2.1.0.
I see that it got 8 upvotes and it's been 3 months. Would be interesting to hear @orfjackal shed some light about it.
Also is it related/dupe of #109 ?
I cannot share the full code, but it seems there's a regression over 2.1.0 that causes it to produce incorrect code.
The error is like this:
I set a click listener like this
view.findViewById(R.id.saveButton).setOnClickListener( v -> onSaveClick());
and the
onSaveClick
is called when I click some other view. (looks like generated classes are somehow mixed up…)If I replace this lambda with "good&old" anonymous class, then it works correctly.
It also works correctly with retrolambda 2.1.0.
In all of these cases, I'm compiling via this gradle plugin https://github.com/evant/gradle-retrolambda
The text was updated successfully, but these errors were encountered: