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 206536 - IllegalArgumentException: TYPE_PARAMETER
Summary: IllegalArgumentException: TYPE_PARAMETER
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 7.1
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 12:49 UTC by sdlarsen
Modified: 2012-10-23 12:06 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 183882


Attachments
stacktrace (1.96 KB, text/plain)
2011-12-19 12:49 UTC, sdlarsen
Details
stacktrace (1.78 KB, text/plain)
2012-05-11 17:24 UTC, J Bachorik
Details
stacktrace (2.04 KB, text/plain)
2012-10-19 16:29 UTC, Marian Mirilovic
Details
stacktrace (2.04 KB, text/plain)
2012-10-22 08:53 UTC, Marian Mirilovic
Details

Note You need to log in before you can comment on or make changes to this bug.
Description sdlarsen 2011-12-19 12:49:25 UTC
This bug was originally marked as duplicate of bug 203550, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.1 RC2 (Build 201111302200)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.4-b02, Java(TM) SE Runtime Environment, 1.6.0_29-b11
OS: Linux

User Comments:
sdlarsen: Autocompleting a variable (generics collection stuff) to hold return value from a method call.




Stacktrace: 
java.lang.IllegalArgumentException: TYPE_PARAMETER
   at org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:440)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:388)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:206)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:214)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:199)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:199)
Comment 1 sdlarsen 2011-12-19 12:49:29 UTC
Created attachment 114300 [details]
stacktrace
Comment 2 J Bachorik 2012-05-11 17:24:00 UTC
Created attachment 119366 [details]
stacktrace

Having this expression in editor triggers the exceptionprivate

Set<BTraceExtension.Permission> requestedPermissions = EnumSet.noneOf(null) <BTraceExtension.Permission>();
Comment 3 Exceptions Reporter 2012-05-14 22:24:05 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=183882
Comment 4 Marian Mirilovic 2012-10-19 16:29:20 UTC
Created attachment 126203 [details]
stacktrace

verifying issue 170574 ... 
call "Assign Return Value To New Variable" on "bar.foo()"

for 
 interface Foo<T>
    {
        Foo<? extends ThreadLocal<? extends T>> foo();
    }

    Foo<? extends Number> bar = null;
    bar.foo();
Comment 5 Marian Mirilovic 2012-10-22 08:53:20 UTC
Created attachment 126300 [details]
stacktrace
Comment 6 Jan Lahoda 2012-10-22 13:04:56 UTC
Fixed:
http://hg.netbeans.org/jet-main/rev/739cbfb459b1
Comment 7 Quality Engineering 2012-10-23 12:06:30 UTC
Integrated into 'main-golden', will be available in build *201210231040* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/739cbfb459b1
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #206536: IllegalArgumentException: TYPE_PARAMETER (fixed).