This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Converting valid lambda to anon inner class generates invalid code that cannot compile due to syntax errors. | ||
---|---|---|---|
Product: | java | Reporter: | xarax |
Component: | Hints | Assignee: | Svata Dedic <sdedic> |
Status: | RESOLVED DUPLICATE | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.0 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: |
First version with for loop
For loop converted to stream with lambda Lambda converted to anonymous inner class with bad syntax |
Description
xarax
2014-03-18 16:02:09 UTC
I attached the sample source showing the original for loop, converted to stream with a lambda, then the lambda converted incorrectly to anonymous inner class. Created attachment 146108 [details]
First version with for loop
Created attachment 146109 [details]
For loop converted to stream with lambda
Created attachment 146110 [details]
Lambda converted to anonymous inner class with bad syntax
seems fixed as part of issue #254165 *** This bug has been marked as a duplicate of bug 254165 *** |