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 227114

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

Description sreimers 2013-03-06 16:30:31 UTC
Build: NetBeans IDE Dev (Build 201303032300)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.0-b20, Java(TM) SE Runtime Environment, 1.8.0-ea-b79
OS: Windows 7

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$MemberItem.invoke(Items.java:524)
   at com.sun.tools.javac.jvm.Gen.visitNewClass(Gen.java:1837)
   at com.sun.tools.javac.tree.JCTree$JCNewClass.accept(JCTree.java:1498)
   at com.sun.tools.javac.jvm.Gen.genExpr(Gen.java:897)
   at com.sun.tools.javac.jvm.Gen.visitThrow(Gen.java:1739)
   at com.sun.tools.javac.tree.JCTree$JCThrow.accept(JCTree.java:1389)
Comment 1 sreimers 2013-03-06 16:30:32 UTC
Created attachment 132281 [details]
stacktrace
Comment 2 adithyank 2014-04-01 12:55:10 UTC
Created attachment 146470 [details]
stacktrace

not sure what i did
Comment 3 Dusan Balek 2015-03-12 13:25:21 UTC

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