diff -r 1a8c1621084d -r f5b52e571607 langtools/src/java.compiler/share/classes/javax/lang/model/element/AnnotationValueVisitor.java --- a/langtools/src/java.compiler/share/classes/javax/lang/model/element/AnnotationValueVisitor.java Wed Jan 18 21:09:19 2017 +0300 +++ b/langtools/src/java.compiler/share/classes/javax/lang/model/element/AnnotationValueVisitor.java Wed Jan 18 19:39:06 2017 -0800 @@ -68,8 +68,8 @@ * javax.lang.model.*} packages bundled in Java SE 8 were required to * also be runnable on Java SE 7. Therefore, default methods * were not used when extending {@code javax.lang.model.*} - * to cover Java SE 8 language features. However, default methods may - * be used in subsequent revisions of the {@code javax.lang.model.*} + * to cover Java SE 8 language features. However, default methods + * are used in subsequent revisions of the {@code javax.lang.model.*} * packages that are only required to run on Java SE 8 and higher * platform versions. * @@ -90,11 +90,16 @@ R visit(AnnotationValue av, P p); /** - * A convenience method equivalent to {@code v.visit(av, null)}. + * A convenience method equivalent to {@code visit(av, null)}. + * + * @implSpec The default implementation is {@code visit(av, null)}. + * * @param av the value to visit * @return a visitor-specified result */ - R visit(AnnotationValue av); + default R visit(AnnotationValue av) { + return visit(av, null); + } /** * Visits a {@code boolean} value in an annotation.