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 96008

Summary: Use simple name for inner classes
Product: editor Reporter: Jiri Prox <jiriprox>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152194    

Description Jiri Prox 2007-02-20 10:49:26 UTC
NetBeans IDE Dev (Build 200702191730)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Linux version 2.6.5-1.358 running on i386
en_US (nb); UTF-8

The smart CC uses long name (TopLevelClass.InnerClass) when generating
constustor with generic type. 

Example:
1) have a code:
public class Main {    
    private class Item {        
    }        
    public static void main(String[] args) {
       List<Item> l = new ArrayLis|
    }    
}
2) at position marked by | call smart CC

-> the line is completed to ArrayList<Main.Item> but ArrayList<Item> is enough
Comment 1 Martin Balin 2016-07-07 07:29:37 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss