| Summary: | [1.8][clean up] Convert lambda to anonymous class does not convert nested lambdas | ||
|---|---|---|---|
| Product: | [Eclipse Project] JDT | Reporter: | Dani Megert <daniel_megert> |
| Component: | UI | Assignee: | Noopur Gupta <noopur_gupta> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | markus.kell.r, noopur_gupta |
| Version: | 4.4 | ||
| Target Milestone: | 4.5 M2 | ||
| Hardware: | All | ||
| OS: | All | ||
| See Also: | https://bugs.eclipse.org/bugs/show_bug.cgi?id=434884 | ||
| Whiteboard: | |||
The ASTRewrite in LambdaExpressionsFix.CreateAnonymousClassCreationOperation#rewriteAST contains both the events to convert both the lambdas to anonymous classes. However, finally only the outer lambda is converted. The problem looks similar to bug 434884 comment #2 in the reverse conversion. Note that if the body of outer lambda is converted to a block, then the cleanup works fine. This will be fixed with the patch for bug 434884. *** This bug has been marked as a duplicate of bug 434884 *** |
4.4 RC4. Convert to lambda does not convert nested lambdas. Test Case: void test() { Callable<Runnable> callable= () -> () -> System.out.println(); }