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 255791 - 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.1
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-10-07 21:40 UTC by _ gtzabari
Modified: 2017-05-31 11:52 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 220424


Attachments
stacktrace (5.80 KB, text/plain)
2015-10-07 21:40 UTC, _ gtzabari
Details
IDE log (435.48 KB, application/octet-stream)
2016-05-24 16:43 UTC, zmirc
Details
stacktrace (5.80 KB, text/plain)
2016-09-08 07:39 UTC, peterhull90
Details
stacktrace (1.90 KB, text/plain)
2016-09-25 08:52 UTC, Exceptions Reporter
Details
IDE log (122.86 KB, text/plain)
2016-11-26 21:58 UTC, zmirc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2015-10-07 21:40:18 UTC
This bug was originally marked as duplicate of bug 236152, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE Dev (Build 201510070002)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.60-b23, Java(TM) SE Runtime Environment, 1.8.0_60-b27
OS: Windows 7

User Comments:
gtzabari: Clicked CTRL+LMB on the method handle at the end of this line:

private final Function<Collection<String>, Facts> sut = FactsFactory.INSTANCE::fromText;

Exception thrown.




Stacktrace: 
java.lang.IllegalArgumentException: Unsupported type: <any?>, kind: OTHER
   at org.netbeans.modules.java.source.usages.ClassFileUtil.encodeType(ClassFileUtil.java:318)
   at org.netbeans.modules.java.source.usages.ClassFileUtil.createExecutableDescriptor(ClassFileUtil.java:198)
   at org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:458)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:397)
   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 _ gtzabari 2015-10-07 21:40:19 UTC
Created attachment 156608 [details]
stacktrace
Comment 2 zmirc 2016-05-24 16:36:13 UTC
I was writing the following:
executors.forEach(TaskExecutor::

Note:
executors is ArrayList<TaskExecutor>
Comment 3 zmirc 2016-05-24 16:43:38 UTC
Created attachment 159865 [details]
IDE log

NetBeans IDE Dev (Build 201605100002)
Windows 8
Java HotSpot(TM) 64-Bit Server VM, 25.74-b02, Java(TM) SE Runtime Environment, 1.8.0_74-b02
http://statistics.netbeans.org/analytics/exception.do?id=819940
Comment 4 peterhull90 2016-09-08 07:39:45 UTC
Created attachment 161966 [details]
stacktrace

Editing Java code.
Comment 5 Exceptions Reporter 2016-09-25 08:52:03 UTC
Created attachment 162201 [details]
stacktrace

Typing a lambda expression
Comment 6 zmirc 2016-11-26 21:58:28 UTC
I wrote :: twice. Code below:

List<Path> paths = getFilesIgnoringReadme("data");
assertEquals(paths.size(), 155);
paths.forEach(Path::getFileName::);
Comment 7 zmirc 2016-11-26 21:58:33 UTC
Created attachment 163036 [details]
IDE log
Comment 8 Exceptions Reporter 2016-12-16 22:03:54 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=220424