Community
Participate
Working Groups
Example: class A { private Collection<I> a[]; ^ } Using content assist to get proposals for Collection type argument will throw the following exception: java.lang.NullPointerException at org.eclipse.jdt.internal.codeassist.CompletionEngine.isValidParent(CompletionEngine.java:6334) at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete(CompletionEngine.java:733) at org.eclipse.jdt.internal.codeassist.CompletionEngine.complete(CompletionEngine.java:1766) at org.eclipse.jdt.internal.core.Openable.codeComplete(Openable.java:123) at org.eclipse.jdt.internal.core.CompilationUnit.codeComplete(CompilationUnit.java:313) Note that it works perfectly using the other array declaration syntax: class A { private Collection<I>[] a; ^ } It also works, regardless of the syntax used, when the declaration is local to a method: public void method() { Collection<I> a[]; ^ Collection<I>[] b; ^ }
It may be somewhat related to bug #154993
Not sure this is related to bug 154993 as stack trace is different. What's your build ID (3.2 or 3.2.1)?
Using Linux (Debian GNU/Linux x86) Platform: Version: 3.2.0 Build id: M20060629-1905 Using Windows XP Platform: Version: 3.2.1 Build id: M20060921-0945 (In reply to comment #2) > Not sure this is related to bug 154993 as stack trace is different. > > What's your build ID (3.2 or 3.2.1)? >
Created attachment 52325 [details] Proposed fix
Released for 3.3 M3. Test added CompletionTests_1_5#test0294(). This is not a duplicate of bug 154993.
Verified for 3.3 M3 using warm-up build I20061030-0800
Reopen to be backported to 3.2.2.
Created attachment 54060 [details] Proposed fix for 3.2.2
+1 for 3.2.2
Released for 3.2.2. Test added CompletionTests_1_5#test0294().
Verified for 3.2.2 using build M20060112-1200.
*** Bug 177916 has been marked as a duplicate of this bug. ***