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 201222 - "Fix Imports" should not default to a deprecated class
Summary: "Fix Imports" should not default to a deprecated class
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Hints & Annotations (show other bugs)
Version: 7.0.1
Hardware: PC Linux
: P4 normal with 1 vote (vote)
Assignee: Milutin Kristofic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-22 16:18 UTC by mclaborn
Modified: 2015-11-11 02:11 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mclaborn 2011-08-22 16:18:06 UTC
I have two classes named "ObjectWrapper" in different projects.  One class is deprecated and the other one is not.  When I use the "Fix Imports" function, both classes are listed as a choice and the deprecated class is the one chosen by default.

I think one of the following options would be better:

1) Have a checkbox on the "Fix Imports" dialog that controls whether or not to show deprecated classes.
2) Show deprecated classes in this "Fix Imports" dialog with the strikethrough font so that it is readily apparent that they are deprecated.
Comment 1 mclaborn 2011-08-22 16:18:27 UTC
Product Version: NetBeans IDE 7.0.1 (Build 201107282000)
Java: 1.6.0_26; Java HotSpot(TM) 64-Bit Server VM 20.1-b02
System: Linux version 2.6.35-30-generic running on amd64; UTF-8; en_US (nb)
Comment 2 mclaborn 2015-11-11 02:11:36 UTC
This is still a problem in 8.1.