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 121101 - "Go to type" display prefix '1' before inner classes
Summary: "Go to type" display prefix '1' before inner classes
Status: RESOLVED WONTFIX
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-04 13:11 UTC by damian_nb
Modified: 2009-11-02 11:00 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
screenshot: if I'm right this '1' comes from the interface name (14.03 KB, image/png)
2007-11-04 13:12 UTC, damian_nb
Details

Note You need to log in before you can comment on or make changes to this bug.
Description damian_nb 2007-11-04 13:11:14 UTC
in "Go to type" dialog inner classes are not displayed properly, they are prefixed, compare the following code and
screenshot:

package test.inners;

interface Interface1 {}


public class InheritFromOuterClass implements Interface1
{
	private InheritFromOuterClass()
	{
		class ClassInTheMethod {}
	}

	class InnerInheritFromOuter extends InheritFromOuterClass implements Interface1
	{
		Object o = new InheritFromOuterClass();
	}
}
Comment 1 damian_nb 2007-11-04 13:12:34 UTC
Created attachment 52471 [details]
screenshot: if I'm right this '1' comes from the interface name
Comment 2 Peter Pis 2007-11-04 15:04:42 UTC
Reassigning to "editor".
Comment 3 Vitezslav Stejskal 2007-11-04 15:37:05 UTC
Reproducible in a dev build. I don't think '1' comes from the interface name. Look at the names of generated *.class
files, the one for ClassInTheMethod class is InheritFromOuterClass$1ClassInTheMethod.class. So it's most likely
somewhere between javac and java editor.
Comment 4 Jan Becicka 2008-09-04 10:31:36 UTC
This is P4 imo. Local classes are rarely used.
Comment 5 Jan Becicka 2008-11-11 10:49:01 UTC
Later
Comment 6 Quality Engineering 2009-11-02 11:00:38 UTC
NetBeans.org Migration: changing resolution from LATER to WONTFIX