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 242298 - AssertionError: ERRONEOUS com.sun.tools.javac.tree.JCTree$JCErroneous
Summary: AssertionError: ERRONEOUS com.sun.tools.javac.tree.JCTree$JCErroneous
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks: 186473
  Show dependency tree
 
Reported: 2014-02-24 20:29 UTC by zmirc
Modified: 2014-08-18 07:55 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 207935


Attachments
stacktrace (5.18 KB, text/plain)
2014-02-24 20:29 UTC, zmirc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description zmirc 2014-02-24 20:29:22 UTC
Build: NetBeans IDE 8.0 Beta (Build 201401141042)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Windows 8

User Comments:
zmirc: I refactored the name of a class through the refactoring window (CTRL + R)




Stacktrace: 
java.lang.AssertionError: ERRONEOUS com.sun.tools.javac.tree.JCTree$JCErroneous
   at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:2621)
   at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:2463)
   at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:2517)
   at org.netbeans.modules.java.source.save.CasualDiff.treesMatch(CasualDiff.java:2463)
   at org.netbeans.modules.java.source.save.CasualDiff.listsMatch(CasualDiff.java:4755)
   at org.netbeans.modules.java.source.save.CasualDiff.diffForLoop(CasualDiff.java:1288)
Comment 1 zmirc 2014-02-24 20:29:24 UTC
Created attachment 145552 [details]
stacktrace
Comment 2 Jaroslav Havlin 2014-02-25 06:38:49 UTC
Reassigning to java/Source. Please evaluate it, thank you.
Comment 3 Svata Dedic 2014-03-14 22:49:05 UTC
Reproduced.

For testing, use

class Test {
public void test() {
   for (Test;  i > 0; i--) {
   }
}

and rename class Test to Test2.

Fixed in jet-main#f988241a290b
Comment 4 Quality Engineering 2014-04-05 03:29:17 UTC
Integrated into 'main-silver', will be available in build *201404050001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/f988241a290b
User: Svata Dedic <sdedic@netbeans.org>
Log: #242298: allow match 2 ERRONEOUS nodes based on text content