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 185775

Summary: ClassCastException: com.sun.tools.javac.code.Type$ClassType cannot be cast to com.sun.tools.javac.code.Type$MethodType
Product: java Reporter: ostermann_bernd <ostermann_bernd>
Component: CompilerAssignee: Dusan Balek <dbalek>
Status: RESOLVED WONTFIX    
Severity: normal CC: ostermann_bernd, sreimers, theosib
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 80107
Attachments: stacktrace
stacktrace

Description ostermann_bernd 2010-05-08 15:25:43 UTC
Build: NetBeans IDE 6.9 Beta (Build 201004200117)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows XP

User Comments:
ostermann_bernd: Scanning projects

ostermann_bernd: Assigning Java SDK6_20 to projects




Stacktrace: 
java.lang.ClassCastException: com.sun.tools.javac.code.Type$ClassType cannot be cast to com.sun.tools.javac.code.Type$MethodType
   at com.sun.tools.javac.jvm.Items$StaticItem.invoke(Items.java:456)
   at com.sun.tools.javac.jvm.Gen.visitApply(Gen.java:1686)
   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1304)
   at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:839)
   at com.sun.tools.javac.jvm.Gen.visitExec(Gen.java:1631)
   at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1150)
Comment 1 ostermann_bernd 2010-05-08 15:25:48 UTC
Created attachment 98676 [details]
stacktrace
Comment 2 Dusan Balek 2010-05-10 07:28:01 UTC
Are you able to reproduce the issue with clean caches (deleted var/cache subdirectory of your userdir)?
Comment 3 ostermann_bernd 2010-05-10 10:46:19 UTC
Created attachment 98709 [details]
stacktrace

Scanning projects after deleting var/cache of userdir.
s. #Bug 185775
Comment 4 ostermann_bernd 2010-05-10 10:50:10 UTC
(In reply to comment #2)
> Are you able to reproduce the issue with clean caches (deleted var/cache
> subdirectory of your userdir)?

Yes, I could reproduce it. The exception occurred while scanning projects without assigning another JDK.
(s. comment #3)
Comment 5 Exceptions Reporter 2011-09-26 23:29:52 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=80107
Comment 6 Exceptions Reporter 2011-09-26 23:31:37 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=80107
Comment 7 Dusan Balek 2015-03-12 13:25:21 UTC
*** Bug 227114 has been marked as a duplicate of this bug. ***
Comment 8 Martin Balin 2016-07-07 07:16:04 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss