--- a/langtools/src/share/classes/com/sun/tools/javac/tree/TreeCopier.java Mon Apr 04 19:36:26 2011 +0100
+++ b/langtools/src/share/classes/com/sun/tools/javac/tree/TreeCopier.java Wed Apr 06 19:30:57 2011 -0700
@@ -338,10 +338,10 @@
return M.at(t.pos).TypeApply(clazz, arguments);
}
- public JCTree visitDisjunctiveType(DisjunctiveTypeTree node, P p) {
- JCTypeDisjunction t = (JCTypeDisjunction) node;
+ public JCTree visitUnionType(UnionTypeTree node, P p) {
+ JCTypeUnion t = (JCTypeUnion) node;
List<JCExpression> components = copy(t.alternatives, p);
- return M.at(t.pos).TypeDisjunction(components);
+ return M.at(t.pos).TypeUnion(components);
}
public JCTree visitArrayType(ArrayTypeTree node, P p) {