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.
Build: NetBeans IDE Dev (Build 20150427-7bc72e402ee2) VM: Java HotSpot(TM) 64-Bit Server VM, 25.40-b25, Java(TM) SE Runtime Environment, 1.8.0_40-b26 OS: Windows 8 User Comments: misterm: . Stacktrace: java.lang.IllegalArgumentException: Incorrect number of type arguments at com.sun.tools.javac.model.JavacTypes.getDeclaredType0(JavacTypes.java:250) at com.sun.tools.javac.model.JavacTypes.getDeclaredType(JavacTypes.java:226) at org.netbeans.api.java.source.SourceUtils.resolveCapturedTypeInt(SourceUtils.java:1116) at org.netbeans.api.java.source.SourceUtils.resolveCapturedType(SourceUtils.java:1068) at org.netbeans.modules.editor.java.JavaCompletionItem.createAssignToVarText(JavaCompletionItem.java:4079) at org.netbeans.modules.editor.java.JavaCompletionItem.access$3800(JavaCompletionItem.java:114)
Created attachment 153425 [details] stacktrace
Strange. Do you have a reproducible test case?
Created attachment 153673 [details] stacktrace Typing a dot after pasting a FQN
Created attachment 153674 [details] stacktrace .
Created attachment 153848 [details] stacktrace CC on CompilationController
This bug already has 5 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=216995
Created attachment 154322 [details] stacktrace Error
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=216995
Created attachment 158185 [details] stacktrace Some completion
For me it is reproducible using https://github.com/Netbeans-Modules/NbFileStructureNode/blob/develop/src/org/chrisle/netbeans/plugins/nbfilestructurenode/ExtendedJavaDataObject.java#L146 Try to code complete at 146 parameter.| // | is the caret
(In reply to markiewb from comment #10) > For me it is reproducible using > https://github.com/Netbeans-Modules/NbFileStructureNode/blob/develop/src/org/ > chrisle/netbeans/plugins/nbfilestructurenode/ExtendedJavaDataObject.java#L146 > > Try to code complete at 146 > parameter.| // | is the caret Same code works in Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Created attachment 158348 [details] stacktrace Code completion at CompilationController.|
Created attachment 159332 [details] stacktrace invoked completion in editor
Created attachment 161798 [details] stacktrace Invoking autocomplete on static class.
This bug already has 20 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=216995
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/28f6af91830c
Integrated into 'main-silver', will be available in build *201609010002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/28f6af91830c User: Dusan Balek <dbalek@netbeans.org> Log: Issue #252129 - IllegalArgumentException: Incorrect number of type arguments - fixed.