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

Summary: IllegalArgumentException: Unsupported type: <any?>, kind: OTHER
Product: java Reporter: Alexander Simon <alexvsimon>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal CC: ferrybig, petrk
Priority: P3    
Version: 8.2   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 227180
Attachments: stacktrace

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