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

Summary: "Go to type" display prefix '1' before inner classes
Product: java Reporter: damian_nb <damian_nb>
Component: NavigationAssignee: Jan Becicka <jbecicka>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: screenshot: if I'm right this '1' comes from the interface name

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