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.
Summary: | AssertionError: Unexpected kind: RESOURCE_VARIABLE | ||
---|---|---|---|
Product: | java | Reporter: | Exceptions Reporter <exceptions_reporter> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | juhrik, mmirilovic, terje7601 |
Priority: | P1 | ||
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | 177584 |
Attachments: |
stacktrace
stacktrace <no description> stacktrace |
Description
Exceptions Reporter
2011-03-20 19:18:17 UTC
Created attachment 107137 [details]
stacktrace
Can be reproduced with source level == 1.7 on this file: --------------------------------------------- package javaapplication1; import java.io.FileInputStream; import java.io.InputStream; public class JavaApplication1 { public static void main(String[] args) { try (InputStream in = new FileInputStream("")) { in.u(); //note the unknown method } } } --------------------------------------------- Created attachment 107165 [details]
stacktrace
I had just started the IDE & opened 2 Java files
Created attachment 107166 [details]
<no description>
Created attachment 107167 [details]
stacktrace
I have 89 dumps coming from this error already...I 'm really surprised to be the first one to encounter this bug. Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/f3ebb5d8a476 changeset a5ca9c2dcc78 in main/nb-javac details: http://hg.netbeans.org/main/nb-javac?cmd=changeset;node=a5ca9c2dcc78 Could be very annoying. We should consider integrating the fix into 7.0. The fix is OK, IMO. Verified and no problem found in the following jet-main build: Product Version: NetBeans IDE Dev (Build jet-main-3768-on-20110322) Java: 1.7.0-ea; Java HotSpot(TM) Client VM 21.0-b03 System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb) I agree with the integration to 7.0. Integrated into release70. http://hg.netbeans.org/releases/rev/c803356666ba Integrated into 'main-golden', will be available in build *201103230400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/f3ebb5d8a476 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #196895: AssertionError: Unexpected kind: RESOURCE_VARIABLE - fixed. Verified in the following 7.0 build: Product Version: NetBeans IDE 7.0 RC1 (Build 201103240000) Java: 1.7.0-ea; Java HotSpot(TM) Client VM 21.0-b03 System: Windows XP version 5.1 running on x86; Cp1250; en_US (nb) |