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: NetBeans IDE 6.9.1 (Build 201007282301) VM: Java HotSpot(TM) Client VM, 17.0-b16, Java(TM) SE Runtime Environment, 1.6.0_21-b06 OS: Linux User Comments: ecastro: Working with generic type. Maybe I should upgrade my java 7. zolta: got exception while editing: EnumMap<?,Object> linemap = new EnumMap<>(enumClazz); ecastro: Having fun with generic types. Using java7 b89 ecastro: Working on code with many transient error on generic types Stacktrace: com.sun.tools.javac.comp.Infer$InvalidInstanceException at com.sun.tools.javac.comp.Infer.<init>(Infer.java:76) at com.sun.tools.javac.comp.Infer.instance(Infer.java:61) at com.sun.tools.javac.comp.Check.<init>(Check.java:90) at com.sun.tools.javac.comp.Check.instance(Check.java:80) at com.sun.tools.javac.code.Types.<init>(Types.java:99) at com.sun.tools.javac.code.Types.instance(Types.java:87)
Created attachment 106184 [details] stacktrace
<> Is Diamond operator in JDK7 NB 7.0b2 recognizes and gives warning to ask user whether she wants to switch -source 7
Do you have a reproducible test case? Thanks.
This bug already has 10 duplicates see http://statistics.netbeans.org/exceptions/detail.do?id=168341
Exception occours with NB 6.9.1 on java 1.6.0_21-b06 in a method type the following: EnumMap<?,Object> linemap; linemap=new EnumMap //if you go ahead with typing to linemap=new EnumMap<> com.sun.tools.javac.comp.Infer$InvalidInstanceException exception occurrs Interesting that it does not occour with =new TreeMap<> this is not present in latest dev build (on 110225)
Last report is from 6.9.1 - doesn't seem to be a problem any more