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.
This is only an issue in pre. java 7 (no diamond). If you enter List<String> list = new ArrayLis and hit CTRL+Space, the CC will suggest "ArrayList<String> (java.util)" to complete the type declaration. After this, the CC will ask which constructor you will use. However, if you type out the full type name like this: List<String> list = new ArrayList and invoke CC, it will suggest the three constructors first, and first as a fourth option it will suggest to complete the type with the generic declaration (adding the "<String>" to the type name). This means that every time i will declare a variable that has a generic component, i will NOT type the full class name use CC to get the right constructor - i will type almost the full name, and then use CC to get the generic component, and then the right constructor. My suggestion is to move up the CC suggestion to complete the type declaration (adding "<String>") in the CC dialog so that it is presented before the constructors.