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 242760 - IllegalArgumentException: OTHER
Summary: IllegalArgumentException: OTHER
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-10 20:25 UTC by MackSix
Modified: 2016-01-12 09:06 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 208301


Attachments
stacktrace (4.58 KB, text/plain)
2014-03-10 20:25 UTC, MackSix
Details
Log File (1.02 MB, text/plain)
2014-03-10 20:58 UTC, MackSix
Details
stacktrace (643 bytes, text/plain)
2015-04-07 13:09 UTC, FrantaM
Details

Note You need to log in before you can comment on or make changes to this bug.
Description MackSix 2014-03-10 20:25:20 UTC
This bug was originally marked as duplicate of bug 240592, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 8.0 (Build 201403052200)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 7

User Comments:
MackSix: 1. Download Apache Commons Collection 4.0 source. 
http://commons.apache.org/proper/commons-collections/download_collections.cgi
2. Open it in NetBeans 8.0 FCS.
3. Do a priming build if needed.
4. Goto Refactor>>Inspect & Transform and use the Configuration Mnager to select all Inspections.
5. Press Inspect button and wait for exception.




Stacktrace: 
java.lang.IllegalArgumentException: OTHER
   at org.netbeans.api.java.source.ElementHandle.createImpl(ElementHandle.java:484)
   at org.netbeans.api.java.source.ElementHandle.create(ElementHandle.java:397)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:208)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:201)
   at org.netbeans.api.java.source.TypeMirrorHandle.create(TypeMirrorHandle.java:141)
   at org.netbeans.modules.java.hints.suggestions.TooStrongCast$ReplaceTypeCast.<init>(TooStrongCast.java:296)
Comment 1 MackSix 2014-03-10 20:25:22 UTC
Created attachment 145915 [details]
stacktrace
Comment 2 MackSix 2014-03-10 20:57:33 UTC
Repeatable and repeatable on JDK 1.8.0

See attached log file.
Comment 3 MackSix 2014-03-10 20:58:58 UTC
Created attachment 145916 [details]
Log File
Comment 4 FrantaM 2015-04-07 13:09:24 UTC
Created attachment 153080 [details]
stacktrace

-