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 253039 - Fix imports should better handle code with parsing errors
Summary: Fix imports should better handle code with parsing errors
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-17 08:55 UTC by terje7601
Modified: 2015-07-01 14:25 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
example Fix imports dialog (38.07 KB, image/png)
2015-06-17 08:55 UTC, terje7601
Details

Note You need to log in before you can comment on or make changes to this bug.
Description terje7601 2015-06-17 08:55:03 UTC
Created attachment 154264 [details]
example Fix imports dialog

Often while I'm working on code which contains parsing errors, and do "fix imports", there are 2 problems:
- even variables like "t", "u", "rfc" are attempted to be resolved, even though they are obviously variable names (I'd say: when parsing errors exist, anything that starts with a lowercase letter should not be attempted to be resolved)
- it's impossible to "ignore" a certain entry in this case. For example, in my case NetBeans finds some obscure possibilities for "u". However, I don't want it to add any imports for it, because "u" is a variable. So the combobox should have an entry "<ignore>" for this, similar to "<cannot be resolved>"