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.
[ JDK VERSION : 1.8 ] faced a situation while reviewing the tutorial over view of JDK8 support in Netbeans https://netbeans.org/kb/docs/java/javase-jdk8.html. The Hint actions don't work within guarded block. Steps 1. Create a Java project using the Anagram sample 2. Scroll down to line 175 3. On the gutter click on the hint icon 4. Select either of the hints - Use Member reference or Use Lambda Expression Expected Result The code block should reflect the usage of the hint Actual REsult No-op.
Changed product to Java Changed component to Hints & Annotations
Guarded blocks cannot be modified by normal code hints, as they are produced by a code generator which would change them back at some point based on form changes. However the generator should produce such code (or should be configurable in some ways) NOT to trigger severe hints. What can be done here: 1/ file an ENH request to form editor to support lambdas/method refs for JDK8 development. 2/ hints could be suppressed in guarded blocks; either hints, or their actions
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss
Still valid in 8.2 dev Product Version: NetBeans IDE Dev (Build 201607100002)