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 170315

Summary: Suggest a variable name based on editor errors.
Product: java Reporter: Petr Dvorak <joshis>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: blocker CC: msauer
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Petr Dvorak 2009-08-13 11:31:58 UTC
Assume you write something like:

database.setName(userNameFullWithDiacritics); // userNameFullWithDiacritics does not exist, rest of the code is OK

Editor warning/error shows up - it notifies you about a non-existing variable. Apparently, the first thing you would
like to do is to fix the erroneous state, so you place caret one line up and you start typing "String user|"... Now, I
would like to be able to use the code completion to complete the variable name to the one that is missing (currently,
code completion offers me "userS" and "userString").

// This feature works for example in XCode (CC shows all "words" in the sources).
Comment 1 Max Sauer 2009-08-14 09:05:59 UTC
Yes, this would be nice. CC area, reassigning to Dusan.