--- a/langtools/src/share/classes/com/sun/tools/javac/comp/MemberEnter.java Fri May 09 08:52:57 2014 -0700
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/MemberEnter.java Fri May 09 09:28:47 2014 -0400
@@ -457,7 +457,8 @@
* to the symbol table.
*/
private void addEnumMembers(JCClassDecl tree, Env<AttrContext> env) {
- JCExpression valuesType = make.Type(new ArrayType(tree.sym.type, syms.arrayClass));
+ JCExpression valuesType = make.Type(new ArrayType(tree.sym.type, syms.arrayClass,
+ Type.noAnnotations));
// public static T[] values() { return ???; }
JCMethodDecl values = make.
@@ -677,7 +678,7 @@
//because varargs is represented in the tree as a
//modifier on the parameter declaration, and not as a
//distinct type of array node.
- ArrayType atype = (ArrayType)tree.vartype.type.unannotatedType();
+ ArrayType atype = (ArrayType)tree.vartype.type;
tree.vartype.type = atype.makeVarargs();
}
Scope enclScope = enter.enterScope(env);
@@ -1255,11 +1256,13 @@
ClassType ct = (ClassType) sym.type;
Assert.check(ct.typarams_field.isEmpty());
if (n == 1) {
- TypeVar v = new TypeVar(names.fromString("T"), sym, syms.botType);
+ TypeVar v = new TypeVar(names.fromString("T"), sym, syms.botType,
+ Type.noAnnotations);
ct.typarams_field = ct.typarams_field.prepend(v);
} else {
for (int i = n; i > 0; i--) {
- TypeVar v = new TypeVar(names.fromString("T" + i), sym, syms.botType);
+ TypeVar v = new TypeVar(names.fromString("T" + i), sym,
+ syms.botType, Type.noAnnotations);
ct.typarams_field = ct.typarams_field.prepend(v);
}
}
@@ -1310,8 +1313,8 @@
}
Type mType = new MethodType(argtypes, null, thrown, c);
Type initType = typarams.nonEmpty() ?
- new ForAll(typarams, mType) :
- mType;
+ new ForAll(typarams, mType) :
+ mType;
MethodSymbol init = new MethodSymbol(flags, names.init,
initType, c);
init.params = createDefaultConstructorParams(make, baseInit, init,