Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-b33
OS: Windows XP, 5.1, x86
squib: just browsing through the source code in the editor..
java.lang.ClassCastException: com.sun.tools.javac.code.Type$CapturedType cannot be cast to javax.lang.model.type.DeclaredType
Created attachment 87240 [details]
This issue already has 6 duplicates
Cannot reproduce this in recent trunk builds. From the stack trace, I'm not able to tell what is wrong. No occurrences from 6.8 -> Closing as worksforme.
In case this issue will be encountered in the future, please reopen and provide recent stack trace.
I don't think this bug has been fixed. I checked out the source of slipstream.dev.java.net. And the exception occurs when opening the ChannelGroup.java.
And here's more information about the environment. I'm using the 6.8 beta. But it seems that this should be already fixed.
Fixed in jet-main.
Integrated into 'main-golden', will be available in build *200911231619* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
User: Dusan Balek <email@example.com>
Log: Issue #171656: ClassCastException: com.sun.tools.javac.code.Type$CapturedType cannot be cast to javax.lang.model.type.DeclaredType - fixed.
I downloaded the /dev/nightly/latest/jnlp/org-netbeans-modules-java-hints/org-netbeans-modules-java-hints.jar. And I replaced it into the java3/modules. And the exception continues reporting.
It works now. Thank you.
Created attachment 91686 [details]
A NB6.8 patch candidate, IMO.
*** Bug 179211 has been marked as a duplicate of this bug. ***
The fix has been ported into the release68_fixes repository.