changeset 29125:83b9bf8a6c2a

8073952: Spec of j.l.r.Method.toString/toGenericString need to be clarified Reviewed-by: lancea
author darcy
date Thu, 26 Feb 2015 18:02:49 -0800
parents b8f3a6579ab2
children 4bb4756ceb9c
files jdk/src/java.base/share/classes/java/lang/reflect/Constructor.java jdk/src/java.base/share/classes/java/lang/reflect/Method.java
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/java.base/share/classes/java/lang/reflect/Constructor.java	Thu Feb 26 18:50:02 2015 -0500
+++ b/jdk/src/java.base/share/classes/java/lang/reflect/Constructor.java	Thu Feb 26 18:02:49 2015 -0800
@@ -296,7 +296,8 @@
      * constructor has default (package) access.
      *
      * @return a string describing this {@code Constructor}
-     * @jls 8.8.3. Constructor Modifiers
+     * @jls 8.8.3 Constructor Modifiers
+     * @jls 8.9.2 Enum Body Declarations
      */
     public String toString() {
         return sharedToString(Modifier.constructorModifiers(),
@@ -342,7 +343,8 @@
      * include type parameters
      *
      * @since 1.5
-     * @jls 8.8.3. Constructor Modifiers
+     * @jls 8.8.3 Constructor Modifiers
+     * @jls 8.9.2 Enum Body Declarations
      */
     @Override
     public String toGenericString() {
--- a/jdk/src/java.base/share/classes/java/lang/reflect/Method.java	Thu Feb 26 18:50:02 2015 -0500
+++ b/jdk/src/java.base/share/classes/java/lang/reflect/Method.java	Thu Feb 26 18:02:49 2015 -0800
@@ -356,6 +356,8 @@
      * @return a string describing this {@code Method}
      *
      * @jls 8.4.3 Method Modifiers
+     * @jls 9.4   Method Declarations
+     * @jls 9.6.1 Annotation Type Elements
      */
     public String toString() {
         return sharedToString(Modifier.methodModifiers(),
@@ -409,6 +411,8 @@
      * @since 1.5
      *
      * @jls 8.4.3 Method Modifiers
+     * @jls 9.4   Method Declarations
+     * @jls 9.6.1 Annotation Type Elements
      */
     @Override
     public String toGenericString() {