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 at com.sun.tools.javac.code.Symbol.clone | ||
---|---|---|---|
Product: | java | Reporter: | villuriram <villuriram> |
Component: | Compiler | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | -Silver-, alexvsimon, alexyarm, asportjam, bht, bonnymwas, ceklock, dusty, dylanv, FiruzzZ, hyzoom, jiminaus, KhArtNJava, lolo_101, lwarnick2, lzgrillo, mkhramov, mmirilovic, nagarajyadava, NukemBy, oj-nb, Saucistophe, sdedic, ssazonov, Xpitfire, xylifyx, yjoan |
Priority: | P2 | ||
Version: | 8.0 | ||
Hardware: | All | ||
OS: | All | ||
URL: | http://statistics.netbeans.org/exceptions/detail.do?id=88091 | ||
Issue Type: | DEFECT | Exception Reporter: | 88091 |
Attachments: |
stacktrace
stacktrace stacktrace stacktrace stacktrace stacktrace Crashing sample |
Description
villuriram
2008-11-05 07:26:54 UTC
Created attachment 73273 [details]
stacktrace
Is the issue reproducible on your sources? Created attachment 123881 [details]
stacktrace
Created attachment 140723 [details]
stacktrace
this occures, when I type:
System.out.println(1 + ":\t" + ArrayList);
I reproduced this bug on a new java project. In a method, add a line such as this one (followed or not by a code block): if (MyClass != null) MyClass being an *existing* class name. Crashes everytime. 114 reports => P2 Created attachment 146601 [details]
stacktrace
hg pull in console
Created attachment 146602 [details]
stacktrace
build in console
Created attachment 147022 [details]
stacktrace
I'm working on a Maven Java project.
In the pom.xml file I would like to comment a dependency to see how this library affects the project.
In the pom.xml I select the dependency code with the mouse:
<dependency>
<groupId>org.bouncycastle</groupId>
<artifactId>bcpkix-jdk15on</artifactId>
<version>1.50</version>
</dependency>
and press <SHIFT>+<ALT>+C . The dependency in the pom.xml file is commented. When I press <CTRL>+S to save the modified pom.xml this exception is thrown
(In reply to Saucistophe from comment #5) > In a method, add a line such as this one (followed or not by a code block): > > if (MyClass != null) > > MyClass being an *existing* class name. > Crashes everytime. Reproduced in dev version. Created attachment 148399 [details]
Crashing sample
Reproduced on dev build, running on JDK 7. Place the file into a project, make any text change and then save; the error will be produced during reindexing the changed file.
If I saw correctly in the debugger, the enter/attribute phase of the parser did *not* report any error diagnostic for the NewClass (regular compilation produces an error message that a variable was not found). Subsequently the code generator attempted to clone ClassSymbol which is undefined.
Fixed in jet-main. Thanks for the reproducible test case. http://hg.netbeans.org/jet-main/rev/79b30f18dab0 http://hg.netbeans.org/nb-javac/rev/21d2941f550d Integrated into 'main-silver', will be available in build *201408010001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/79b30f18dab0 User: Dusan Balek <dbalek@netbeans.org> Log: Issues #152386 and #237828 fixed. |