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 252129 - IllegalArgumentException: Incorrect number of type arguments
Summary: IllegalArgumentException: Incorrect number of type arguments
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 8.1
Hardware: All All
: P2 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-28 05:33 UTC by misterm
Modified: 2016-09-01 01:52 UTC (History)
9 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 216995


Attachments
stacktrace (3.21 KB, text/plain)
2015-04-28 05:33 UTC, misterm
Details
stacktrace (3.20 KB, text/plain)
2015-05-14 23:53 UTC, misterm
Details
stacktrace (3.20 KB, text/plain)
2015-05-14 23:56 UTC, misterm
Details
stacktrace (3.21 KB, text/plain)
2015-05-25 15:07 UTC, Ralph Ruijs
Details
stacktrace (3.21 KB, text/plain)
2015-06-22 07:10 UTC, Exceptions Reporter
Details
stacktrace (3.21 KB, text/plain)
2016-01-19 21:00 UTC, markiewb
Details
stacktrace (3.21 KB, text/plain)
2016-02-01 23:21 UTC, markiewb
Details
stacktrace (3.21 KB, text/plain)
2016-04-19 13:20 UTC, Tomas Stupka
Details
stacktrace (3.21 KB, text/plain)
2016-08-29 01:21 UTC, brettryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description misterm 2015-04-28 05:33:28 UTC
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)
Comment 1 misterm 2015-04-28 05:33:30 UTC
Created attachment 153425 [details]
stacktrace
Comment 2 Dusan Balek 2015-04-28 09:17:43 UTC
Strange. Do you have a reproducible test case?
Comment 3 misterm 2015-05-14 23:53:50 UTC
Created attachment 153673 [details]
stacktrace

Typing a dot after pasting a FQN
Comment 4 misterm 2015-05-14 23:56:49 UTC
Created attachment 153674 [details]
stacktrace

.
Comment 5 Ralph Ruijs 2015-05-25 15:07:11 UTC
Created attachment 153848 [details]
stacktrace

CC on CompilationController
Comment 6 Exceptions Reporter 2015-06-22 07:01:43 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216995
Comment 7 Exceptions Reporter 2015-06-22 07:10:43 UTC
Created attachment 154322 [details]
stacktrace

Error
Comment 8 Exceptions Reporter 2016-01-15 11:57:40 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216995
Comment 9 markiewb 2016-01-19 21:00:39 UTC
Created attachment 158185 [details]
stacktrace

Some completion
Comment 10 markiewb 2016-01-19 21:03:41 UTC
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
Comment 11 markiewb 2016-01-19 21:14:27 UTC
(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)
Comment 12 markiewb 2016-02-01 23:21:44 UTC
Created attachment 158348 [details]
stacktrace

Code completion at CompilationController.|
Comment 13 Tomas Stupka 2016-04-19 13:20:58 UTC
Created attachment 159332 [details]
stacktrace

invoked completion in editor
Comment 14 brettryan 2016-08-29 01:21:33 UTC
Created attachment 161798 [details]
stacktrace

Invoking autocomplete on static class.
Comment 15 Exceptions Reporter 2016-08-29 01:21:40 UTC
This bug already has 20 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=216995
Comment 16 Dusan Balek 2016-08-31 08:06:41 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/28f6af91830c
Comment 17 Quality Engineering 2016-09-01 01:52:58 UTC
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.