jdk/src/share/classes/java/lang/reflect/Constructor.java
changeset 16729 3b26e313ad81
parent 16058 5b8d8cec6280
child 16743 b0b34102bb4c
--- a/jdk/src/share/classes/java/lang/reflect/Constructor.java	Tue Apr 02 11:59:34 2013 -0700
+++ b/jdk/src/share/classes/java/lang/reflect/Constructor.java	Tue Apr 02 16:26:54 2013 -0700
@@ -284,9 +284,13 @@
      * modifiers {@code public}, {@code protected} or
      * {@code private}.  Only one of these may appear, or none if the
      * constructor has default (package) access.
+     *
+     * @return a string describing this {@code Constructor}
+     * @jls 8.8.3. Constructor Modifiers
      */
     public String toString() {
         return sharedToString(Modifier.constructorModifiers(),
+                              false,
                               parameterTypes,
                               exceptionTypes);
     }
@@ -328,10 +332,11 @@
      * include type parameters
      *
      * @since 1.5
+     * @jls 8.8.3. Constructor Modifiers
      */
     @Override
     public String toGenericString() {
-        return sharedToGenericString(Modifier.constructorModifiers());
+        return sharedToGenericString(Modifier.constructorModifiers(), false);
     }
 
     @Override