1.1 --- a/src/share/classes/javax/lang/model/util/SimpleTypeVisitor7.java Mon Jan 31 19:06:32 2011 -0800 1.2 +++ b/src/share/classes/javax/lang/model/util/SimpleTypeVisitor7.java Tue Feb 01 10:11:05 2011 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -34,9 +34,10 @@ 1.11 * A simple visitor of types with default behavior appropriate for the 1.12 * {@link SourceVersion#RELEASE_7 RELEASE_7} source version. 1.13 * 1.14 - * Visit methods corresponding to {@code RELEASE_7} language 1.15 - * constructs call {@link #defaultAction}, passing their arguments to 1.16 - * {@code defaultAction}'s corresponding parameters. 1.17 + * Visit methods corresponding to {@code RELEASE_7} and earlier 1.18 + * language constructs call {@link #defaultAction defaultAction}, 1.19 + * passing their arguments to {@code defaultAction}'s corresponding 1.20 + * parameters. 1.21 * 1.22 * <p> Methods in this class may be overridden subject to their 1.23 * general contract. Note that annotating methods in concrete 1.24 @@ -88,4 +89,17 @@ 1.25 protected SimpleTypeVisitor7(R defaultValue){ 1.26 super(defaultValue); 1.27 } 1.28 + 1.29 + /** 1.30 + * This implementation visits a {@code DisjunctiveType} by calling 1.31 + * {@code defaultAction}. 1.32 + * 1.33 + * @param t {@inheritDoc} 1.34 + * @param p {@inheritDoc} 1.35 + * @return the result of {@code defaultAction} 1.36 + */ 1.37 + @Override 1.38 + public R visitDisjunctive(DisjunctiveType t, P p) { 1.39 + return defaultAction(t, p); 1.40 + } 1.41 }