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.
E.g. in org.netbeans.modules.apisupport.project.Evaluator.createEvaluator. Putting caret on return type of method correctly highlights the one return statement in the method. But it also highlights unrelated return statements in methods in a local class.
While travesing the method body looking for return statements and throw statements, the new expressions and java class definitions should be skipped.
Fixed.