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: | Convert to lambda is provided for project with source format < 1.8 | ||
---|---|---|---|
Product: | java | Reporter: | Jiri Prox <jiriprox> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 8.1 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Prox
2015-06-12 10:44:24 UTC
The hint is driven by compiler's lambda warning; cannot reproduce in trunk, I suspect a change in compiler on JDK9 branch. Can't we do anything about such hints ? I am running netbeans nightly build of 11th august 2016. Netbeans is running on JDK8. Project is configured on source level 7. In project library settings, I have configured JRE 7. Ideally IDE shouldn't give this hint. Hints should be based on project source level. I'm getting this in 8.2 using JDK 1.8 with source level 1.7. I've even turned off all lambda related hints and I still am getting ~500 "You should convert this anonymous inner class into a lambda expression" warnings. For me, the warnings don't show up in code, they appear in the Action Items list. |