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: | IDE thinks a statement has lambda expression when it doesn't | ||
---|---|---|---|
Product: | java | Reporter: | redsaz |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | IDE log |
Description
redsaz
2014-03-20 17:51:07 UTC
Created attachment 146189 [details]
IDE log
Verified that this exists in NetBeans 8.0 as well. There's a difference in behaviour of javac from 8u20 and NB-javac. Javac from JDK 8u20 properly processes the file (even though -source 8 was explicitly provided on command line), while NB-javac produces an error "lambda expression not expected here. Also occurs in 8.0.1/dev Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/c24db16113e9 http://hg.netbeans.org/main/nb-javac/rev/6b05875de5e9 Integrated into 'main-silver', will be available in build *201408270001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/c24db16113e9 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #243109: IDE thinks a statement has lambda expression when it doesn't - fixed. |