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.
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)
Created attachment 165006 [details] stacktrace
Please attach the source ...
I'm not sure about the pattern. As soon as I'm able to reproduce it reliably I'll attach a sample case.
Fixed in jet-main#a66b38347b2c
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