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 179211 - ClassCastException: com.sun.tools.javac.code.Type$TypeVar cannot be cast to javax.lang.model.type.DeclaredType
Summary: ClassCastException: com.sun.tools.javac.code.Type$TypeVar cannot be cast to j...
Status: RESOLVED DUPLICATE of bug 171656
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-05 02:33 UTC by meowman
Modified: 2010-01-18 01:30 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 164089


Attachments
stacktrace (5.09 KB, text/plain)
2010-01-05 02:33 UTC, meowman
Details

Note You need to log in before you can comment on or make changes to this bug.
Description meowman 2010-01-05 02:33:11 UTC
This bug was originally marked as duplicate of bug 171656, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 6.8 (Build 200912041610)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.3-b01-101, Java(TM) SE Runtime Environment, 1.6.0_17-b04-248-10M3025
OS: Mac OS X, 10.6.2, x86_64

User Comments:
meowman: happened after some slowness issues with java hints for completion of method names (in a class that implements map interface)



Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Type$TypeVar cannot be cast to javax.lang.model.type.DeclaredType
   at org.netbeans.modules.java.hints.CollectionRemove.run(CollectionRemove.java:148)
   at org.netbeans.modules.java.hints.infrastructure.HintsTask$ScannerImpl.runAndAdd(HintsTask.java:220)
   at org.netbeans.modules.java.hints.infrastructure.HintsTask$ScannerImpl.scan(HintsTask.java:245)
   at org.netbeans.modules.java.hints.infrastructure.HintsTask$ScannerImpl.scan(HintsTask.java:184)
   at com.sun.source.util.TreeScanner.visitReturn(TreeScanner.java:251)
   at com.sun.tools.javac.tree.JCTree$JCReturn.accept(JCTree.java:1224)
Comment 1 meowman 2010-01-05 02:33:15 UTC
Created attachment 93069 [details]
stacktrace
Comment 2 Jan Lahoda 2010-01-18 01:30:44 UTC
I think that bug #171656 was fixed only in trunk not in NB6.8 (although its metadata claimed it was fixed in NB6.8). I marked that bug as a candidate for a NB6.8 patch.

*** This bug has been marked as a duplicate of bug 171656 ***