8073952: Spec of j.l.r.Method.toString/toGenericString need to be clarified
Reviewed-by: lancea
--- 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() {