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 199278 - AssertionError: Diff not implemented: UNION_TYPE com.sun.tools.javac.tree.JCTree$JCTypeUnion
Summary: AssertionError: Diff not implemented: UNION_TYPE com.sun.tools.javac.tree.JCT...
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Jan Lahoda
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-08 15:36 UTC by Jiri Prox
Modified: 2011-06-15 10:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 179248


Attachments
stacktrace (2.95 KB, text/plain)
2011-06-08 15:36 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2011-06-08 15:36:09 UTC
Build: NetBeans IDE 7.0.1 Dev (Build 201106072116)
VM: Java HotSpot(TM) 64-Bit Server VM, 21.0-b15, Java(TM) SE Runtime Environment, 1.7.0-ea-b145
OS: Windows 7

User Comments:
jiriprox: AE when renaming exception




Stacktrace: 
java.lang.AssertionError: Diff not implemented: UNION_TYPE com.sun.tools.javac.tree.JCTree$JCTypeUnion
   at org.netbeans.modules.java.source.save.CasualDiff.diffTreeImpl(CasualDiff.java:3292)
   at org.netbeans.modules.java.source.save.CasualDiff.diffTree(CasualDiff.java:3043)
   at org.netbeans.modules.java.source.save.CasualDiff.diff(CasualDiff.java:196)
   at org.netbeans.api.java.source.WorkingCopy.processCurrentCompilationUnit(WorkingCopy.java:490)
   at org.netbeans.api.java.source.WorkingCopy.getChanges(WorkingCopy.java:625)
   at org.netbeans.api.java.source.JavaSource$1.run(JavaSource.java:670)
Comment 1 Jiri Prox 2011-06-08 15:36:13 UTC
Created attachment 108806 [details]
stacktrace
Comment 2 Jiri Prox 2011-06-08 15:38:43 UTC
steps to reproduce:
1) have a code:
public class Test {

    public void method() {
	try {
	    if (1 == 1) {
		throw new MyEx1();
	    }
	    throw new MyEx2();
	} catch (MyEx1 | MyEx2 hello) {
	    hello.printStackTrace();
	}
    }
}

MyEx1 and MyEx2 are subclasses of Exception

2) try to rename MyEx1
Comment 3 Jan Lahoda 2011-06-10 11:53:55 UTC
In trunk:
http://hg.netbeans.org/jet-main/rev/ac7bd3c8c1a0
Comment 4 Quality Engineering 2011-06-11 15:14:14 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/ac7bd3c8c1a0
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #199278: diffing of UnionTypeTrees
Comment 5 Jan Lahoda 2011-06-14 13:07:44 UTC
release701:
http://hg.netbeans.org/releases/rev/df2717ac5b3e
Comment 6 Quality Engineering 2011-06-15 04:41:02 UTC
Integrated into 'releases'
Changeset: http://hg.netbeans.org/releases/rev/df2717ac5b3e
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #199278: diffing of UnionTypeTrees
Comment 7 Jiri Prox 2011-06-15 10:02:37 UTC
verified in NetBeans IDE 7.0.1 Dev (Build 201106142100)