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 214552 - AssertionError at com.sun.tools.javac.comp.Attr.visitNewClass is thrown due to bug in TreeLoader
Summary: AssertionError at com.sun.tools.javac.comp.Attr.visitNewClass is thrown due t...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-21 07:25 UTC by Dusan Balek
Modified: 2012-06-25 11:56 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dusan Balek 2012-06-21 07:25:07 UTC
In some cases, TreeLoader causes a single source tree to be entered and attributed several times which leads to AssertionError at com.sun.tools.javac.comp.Attr.visitNewClass
Comment 1 Dusan Balek 2012-06-21 07:32:07 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/cdd5ab3c7c6c
Comment 2 Jan Lahoda 2012-06-21 07:35:43 UTC
The fix seems fine to me.
Comment 3 Petr Cyhelsky 2012-06-21 10:40:42 UTC
verified on test case:

Start NB with clean userdir -> open java.source project -> select package org.netbeans.api.java.source -> invoke Source|Inspect from main menu ->  select NetBeans Java Hints in dialogue -> run the inspection -> check that no exception is thrown
Comment 4 Jan Lahoda 2012-06-21 20:34:23 UTC
release72:
http://hg.netbeans.org/releases/rev/8036e6330f07
Comment 5 Quality Engineering 2012-06-22 04:20:16 UTC
Integrated into 'releases', will be available in build *201206212341* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/8036e6330f07
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #214552: AssertionError at com.sun.tools.javac.comp.Attr.visitNewClass is thrown due to bug in TreeLoader - fixed.
Comment 6 Quality Engineering 2012-06-23 04:35:31 UTC
Integrated into 'main-golden', will be available in build *201206230002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/cdd5ab3c7c6c
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #214552: AssertionError at com.sun.tools.javac.comp.Attr.visitNewClass is thrown due to bug in TreeLoader - fixed.
Comment 7 Marian Mirilovic 2012-06-24 21:06:58 UTC
... pending verification in NB 7.2
Comment 8 Jiri Prox 2012-06-25 11:56:08 UTC
verified