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 223763 - Go to type dialog should not provide anonymous classes
Summary: Go to type dialog should not provide anonymous classes
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 7.3
Hardware: PC Windows 7
: P4 normal (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-13 11:53 UTC by Jiri Prox
Modified: 2012-12-17 12:35 UTC (History)
0 users

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 Jiri Prox 2012-12-13 11:53:11 UTC
When adding new property (alt-insert -> Add property) the Go to type dialog provides anonymous classes. 

Steps to reproduce:
1) open any class
2) alt-insert -> Add property
3) click on Browse
4) type "java.io."
-> there are several anonymous classes at the top of the list
5) select one and confirm adding new property

-> code is incorrectly generated, for example following code is added:
private Console.1 string ;


Product Version: NetBeans IDE Dev (Build 201212120001)
Java: 1.7.0_10; Java HotSpot(TM) 64-Bit Server VM 23.6-b04
Runtime: Java(TM) SE Runtime Environment 1.7.0_10-b18
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Jiri Prox 2012-12-13 14:21:26 UTC
the same is valid also for browsing types in Change Method Parameters dialog (refactoring)
Comment 2 Tomas Zezula 2012-12-14 17:33:26 UTC
fixed jet-main aa3ae3b2975c

>the same is valid also for browsing types in Change Method Parameters dialog
>(refactoring)
Create a separate issue on j/r.
Comment 3 Quality Engineering 2012-12-17 12:35:57 UTC
Integrated into 'main-golden', will be available in build *201212170919* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/aa3ae3b2975c
User: Tomas Zezula <tzezula@netbeans.org>
Log: #223763:Go to type dialog should not provide anonymous classes