src/share/classes/com/sun/tools/javac/model/AnnotationProxyMaker.java

Print this page

        

*** 179,198 **** public void visitClass(Attribute.Class c) { value = new MirroredTypeExceptionProxy(c.type); } public void visitArray(Attribute.Array a) { ! Name elemName = ((ArrayType) a.type).elemtype.tsym.name; ! if (elemName == elemName.table.names.java_lang_Class) { // Class[] // Construct a proxy for a MirroredTypesException ! List<TypeMirror> elems = List.nil(); for (Attribute value : a.values) { Type elem = ((Attribute.Class) value).type; ! elems.add(elem); } ! value = new MirroredTypesExceptionProxy(elems); } else { int len = a.values.length; Class<?> returnClassSaved = returnClass; returnClass = returnClass.getComponentType(); --- 179,198 ---- public void visitClass(Attribute.Class c) { value = new MirroredTypeExceptionProxy(c.type); } public void visitArray(Attribute.Array a) { ! Name elemName = ((ArrayType) a.type).elemtype.tsym.getQualifiedName(); ! if (elemName.equals(elemName.table.names.java_lang_Class)) { // Class[] // Construct a proxy for a MirroredTypesException ! ListBuffer<TypeMirror> elems = new ListBuffer<TypeMirror>(); for (Attribute value : a.values) { Type elem = ((Attribute.Class) value).type; ! elems.append(elem); } ! value = new MirroredTypesExceptionProxy(elems.toList()); } else { int len = a.values.length; Class<?> returnClassSaved = returnClass; returnClass = returnClass.getComponentType();