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 271367 - java.lang.IllegalArgumentException
Summary: java.lang.IllegalArgumentException
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: Dev
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-24 18:08 UTC by alied
Modified: 2017-09-03 02:50 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 230122


Attachments
stacktrace (2.43 KB, text/plain)
2017-08-24 18:08 UTC, alied
Details

Note You need to log in before you can comment on or make changes to this bug.
Description alied 2017-08-24 18:08:21 UTC
This bug was originally marked as duplicate of bug 249219, 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 201708240001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.141-b15, Java(TM) SE Runtime Environment, 1.8.0_141-b15
OS: Linux

User Comments:
alied: editing a source file with errors




Stacktrace: 
java.lang.IllegalArgumentException
   at org.netbeans.api.java.source.TypeUtilities.isCastable(TypeUtilities.java:108)
   at org.netbeans.modules.java.hints.suggestions.TooStrongCast.broadTypeCast(TooStrongCast.java:225)
   at sun.reflect.GeneratedMethodAccessor300.invoke(GeneratedMethodAccessor300.java:0)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:498)
   at org.netbeans.modules.java.hints.providers.code.CodeHintProviderImpl$WorkerImpl.createErrors(CodeHintProviderImpl.java:340)
Comment 1 alied 2017-08-24 18:08:23 UTC
Created attachment 165006 [details]
stacktrace
Comment 2 Svata Dedic 2017-08-25 09:32:21 UTC
Please attach the source ...
Comment 3 alied 2017-08-26 03:04:54 UTC
I'm not sure about the pattern. As soon as I'm able to reproduce it reliably I'll attach a sample case.
Comment 4 Svata Dedic 2017-09-01 15:34:26 UTC
Fixed in jet-main#a66b38347b2c
Comment 5 Quality Engineering 2017-09-03 02:50:30 UTC
Integrated into 'main-silver', will be available in build *201709030001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/a66b38347b2c
User: Svata Dedic <sdedic@netbeans.org>
Log: #271367: restricted acceptable types some more