changeset 4022:17249d1d92fe

8176266: Make visitUnknown specification more explicit Reviewed-by: jlahoda
author darcy
date Tue, 07 Mar 2017 08:43:29 -0800
parents 0f4fef68d2d8
children f183296d126b
files src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor6.java src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor6.java src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java
diffstat 4 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java	Mon Mar 06 15:44:37 2017 -0800
+++ b/src/java.compiler/share/classes/javax/lang/model/element/ModuleElement.java	Tue Mar 07 08:43:29 2017 -0800
@@ -251,7 +251,7 @@
          * @param p  a visitor-specified parameter
          * @return a visitor-specified result
          * @throws UnknownDirectiveException a visitor implementation may optionally throw this exception
-         * @implSpec This implementation throws {@code UnknownDirectiveException}.
+         * @implSpec This implementation throws {@code new UnknownDirectiveException(d, p)}.
          */
         default R visitUnknown(Directive d, P p) {
             throw new UnknownDirectiveException(d, p);
--- a/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor6.java	Mon Mar 06 15:44:37 2017 -0800
+++ b/src/java.compiler/share/classes/javax/lang/model/util/AbstractAnnotationValueVisitor6.java	Tue Mar 07 08:43:29 2017 -0800
@@ -106,7 +106,7 @@
      *
      * @implSpec The default implementation of this method in {@code
      * AbstractAnnotationValueVisitor6} will always throw {@code
-     * UnknownAnnotationValueException}.  This behavior is not
+     * new UnknownAnnotationValueException(av, p)}.  This behavior is not
      * required of a subclass.
      *
      * @param av {@inheritDoc}
--- a/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor6.java	Mon Mar 06 15:44:37 2017 -0800
+++ b/src/java.compiler/share/classes/javax/lang/model/util/AbstractElementVisitor6.java	Tue Mar 07 08:43:29 2017 -0800
@@ -111,7 +111,7 @@
      *
      * @implSpec The default implementation of this method in
      * {@code AbstractElementVisitor6} will always throw
-     * {@code UnknownElementException}.
+     * {@code new UnknownElementException(e, p)}.
      * This behavior is not required of a subclass.
      *
      * @param e {@inheritDoc}
--- a/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java	Mon Mar 06 15:44:37 2017 -0800
+++ b/src/java.compiler/share/classes/javax/lang/model/util/AbstractTypeVisitor6.java	Tue Mar 07 08:43:29 2017 -0800
@@ -142,7 +142,7 @@
      *
      * @implSpec The default implementation of this method in {@code
      * AbstractTypeVisitor6} will always throw {@code
-     * UnknownTypeException}.  This behavior is not required of a
+     * new UnknownTypeException(t, p)}.  This behavior is not required of a
      * subclass.
      *
      * @param t  {@inheritDoc}