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 195692 - com.sun.tools.javac.comp.Infer$InvalidInstanceException at com.sun.tools.javac.comp.Infer.<init>
Summary: com.sun.tools.javac.comp.Infer$InvalidInstanceException at com.sun.tools.java...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Compiler (show other bugs)
Version: 6.x
Hardware: All All
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 10:18 UTC by zolta
Modified: 2012-11-08 11:46 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 168341


Attachments
stacktrace (3.63 KB, text/plain)
2011-02-19 10:18 UTC, zolta
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zolta 2011-02-19 10:18:36 UTC
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)
Comment 1 zolta 2011-02-19 10:18:45 UTC
Created attachment 106184 [details]
stacktrace
Comment 2 zolta 2011-02-19 10:56:22 UTC
<> Is Diamond operator in JDK7

NB 7.0b2 recognizes and gives warning to ask user whether she wants to switch -source 7
Comment 3 Dusan Balek 2011-02-21 12:11:55 UTC
Do you have a reproducible test case? Thanks.
Comment 4 Exceptions Reporter 2011-02-24 21:57:39 UTC
This bug already has 10 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=168341
Comment 5 zolta 2011-02-25 10:51:19 UTC
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)
Comment 6 Petr Cyhelsky 2012-11-08 11:46:17 UTC
Last report is from 6.9.1 - doesn't seem to be a problem any more