public void visitNewArray(JCNewArray tree) {
        tree.elemtype = translate(tree.elemtype, null);
        translate(tree.dims, syms.intType);
        tree.elems = translate(tree.elems,
                               (tree.type == null) ? null
                               : erasure(types.elemtype(tree.type)));
        tree.type = erasure(tree.type);

        result = tree;
    }