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.
In following class: import java.util.Vector; public class ArrayGeneric { static Vector<String>[] vArray; public static void main(String[] args) { vArray = (Vector<String>[]) Array/*1*/.newInstance(Vector.class, 0); } } code completion does not work in #1, should be possible to choose java.lang.reflect.Array (more, drop down list is empty)- the problem is in String[] - when I remove [] code completion works
Reproducible, in RC1 the problem seems to be more general - CC does not work behind the cast to generic, e.g. List s = (List<String>) /* here */ Product Version: NetBeans IDE 6.0 RC1 (Build 200711111200) Java: 1.6.0_05-ea; Java HotSpot(TM) Client VM 1.6.0_05-ea-b06 System: Linux version 2.6.5-1.358 running on i386; UTF-8; en_US (nb)
Fixed. Checking in JavaCompletionProvider.java; /cvs/java/editor/src/org/netbeans/modules/editor/java/JavaCompletionProvider.java,v <-- JavaCompletionProvider.java new revision: 1.168; previous revision: 1.167 done
verified with build 200711141200
The fix has been ported into the release60_fixes branch. Checking in JavaCompletionProvider.java; /cvs/java/editor/src/org/netbeans/modules/editor/java/JavaCompletionProvider.java,v <-- JavaCompletionProvider.java new revision: 1.166.4.1; previous revision: 1.166 done
Verified in 6.0 with patch1. --- Product Version: NetBeans IDE Dev (Build 20071207081312) Java: 1.5.0_14; Java HotSpot(TM) Client VM 1.5.0_14-b03 System: Linux version 2.6.20-16-generic running on i386; UTF-8; en_US (nb) Userdir: /space/test0