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

Summary: IllegalArgumentException: OTHER
Product: java Reporter: MackSix
Component: HintsAssignee: Svata Dedic <sdedic>
Status: NEW ---    
Severity: normal CC: arren, FrantaM, MackSix, terje7601
Priority: P3    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 208301
Attachments: stacktrace
Log File
stacktrace

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

-