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.

Bug 257501 - suggest variable name from usage of missing declaration
Summary: suggest variable name from usage of missing declaration
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-10 13:51 UTC by everflux
Modified: 2016-01-10 19:20 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description everflux 2016-01-10 13:51:38 UTC
public class Foo {

  String <CTRL-SPACE>

  void foo() {
    bar = "blubb";
  }

}

Suggest "bar" since it is already used but not present.
Same for method parameter.
Would be great if the type could be used to filter the suggestions as well, if multiple undeclared symbols are present and type information is present or can be deduced.