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 269594 - IllegalArgumentException: Unsupported type: <any?>, kind: OTHER
Summary: IllegalArgumentException: Unsupported type: <any?>, kind: OTHER
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-18 13:29 UTC by Alexander Simon
Modified: 2017-06-08 06:16 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 227180


Attachments
stacktrace (2.99 KB, text/plain)
2017-01-18 13:29 UTC, Alexander Simon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2017-01-18 13:29:56 UTC
Build: NetBeans IDE 8.2 (Build 20161213-185708536299)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.112-b15, Java(TM) SE Runtime Environment, 1.8.0_112-b15
OS: SunOS

User Comments:
petrk: Clicked on incorrect Java construction:
AAA app = new AAA();
(app::foo).$call();
              ^
         clicked here

alexvsimon: edit java code

ferrybig: Java 8 lamba, tried to call function with 2 arguments where the last one was a lambo (no class genericts, just hardcoded in the method itself), while the function required 3 arguments

GUEST: ...




Stacktrace: 
java.lang.IllegalArgumentException: Unsupported type: <any?>, kind: OTHER
   at org.netbeans.modules.java.source.usages.ClassFileUtil.encodeType(ClassFileUtil.java:319)
   at org.netbeans.modules.java.source.usages.ClassFileUtil.createExecutableDescriptor(ClassFileUtil.java:198)
   at org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:459)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:398)
   at org.netbeans.modules.editor.java.GoToSupport$3.run(GoToSupport.java:257)
   at org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
Comment 1 Alexander Simon 2017-01-18 13:29:59 UTC
Created attachment 163424 [details]
stacktrace
Comment 2 Exceptions Reporter 2017-06-08 06:16:08 UTC
This bug already has 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=227180