--- old/src/share/classes/javax/lang/model/util/SimpleTypeVisitor7.java 2011-02-01 10:09:22.000000000 -0800 +++ new/src/share/classes/javax/lang/model/util/SimpleTypeVisitor7.java 2011-02-01 10:09:22.000000000 -0800 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -34,9 +34,10 @@ * A simple visitor of types with default behavior appropriate for the * {@link SourceVersion#RELEASE_7 RELEASE_7} source version. * - * Visit methods corresponding to {@code RELEASE_7} language - * constructs call {@link #defaultAction}, passing their arguments to - * {@code defaultAction}'s corresponding parameters. + * Visit methods corresponding to {@code RELEASE_7} and earlier + * language constructs call {@link #defaultAction defaultAction}, + * passing their arguments to {@code defaultAction}'s corresponding + * parameters. * *
Methods in this class may be overridden subject to their * general contract. Note that annotating methods in concrete @@ -88,4 +89,17 @@ protected SimpleTypeVisitor7(R defaultValue){ super(defaultValue); } + + /** + * This implementation visits a {@code DisjunctiveType} by calling + * {@code defaultAction}. + * + * @param t {@inheritDoc} + * @param p {@inheritDoc} + * @return the result of {@code defaultAction} + */ + @Override + public R visitDisjunctive(DisjunctiveType t, P p) { + return defaultAction(t, p); + } }