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.
[ BUILD # : 200510131600 ] [ JDK VERSION : 1.5.0_05 ] Steps to reproduce: 1/ New Project->General->Java Application - defaults are fine. 2/ Paste the following code: package myapp; public class Outer { class Inner<T extends Number> {} public static void main(String[] args) { Outer.Inner<Integer> oi = Outer.new Inner<Integer>(); } } and you'll see the attached ClassCastException. To get rid of the error popup window, quickly remove the new keyword after Outer class, but it's very tricky.
Created attachment 26013 [details] ClassCastException: org.netbeans.lib.gjast.ASTreeNode
Checking in MDRParser.java; /cvs/java/javacore/src/org/netbeans/modules/javacore/parser/MDRParser.java,v <-- MDRParser.java new revision: 1.88; previous revision: 1.87 done