gumtree-spoon-ast-diff
gumtree-spoon-ast-diff copied to clipboard
Diff not being reported for nested lambda function
The AST diff in the literal value of return is not being reported.
public class NestedLambda {
public int iHaveNestedLambda() {
Function1 f1 = () -> {
Function2 f2 = () -> {
- return 42;
+ return 420;
}
return f2;
}
return f1.lambda1().lambda2();
}
}
interface Function1 {
Function2 lambda1();
}
interface Function2 {
int lambda2();
}
That's a serious bug!
Came back at this and tried to produce a test for it. Turns out, it is working. The diff is being reported. I am not sure what fixed it, but anyway, we can close it.