--- old/src/share/classes/java/lang/reflect/Method.java 2013-03-28 17:50:23.000000000 -0700 +++ new/src/share/classes/java/lang/reflect/Method.java 2013-03-28 17:50:23.000000000 -0700 @@ -343,10 +343,16 @@ * {@code public}, {@code protected} or {@code private} first, * and then other modifiers in the following order: * {@code abstract}, {@code static}, {@code final}, - * {@code synchronized}, {@code native}, {@code strictfp}. + * {@code synchronized}, {@code native}, {@code strictfp}, + * {@code default}. + * + * @return a string describing this {@code Method} + * + * @jls 8.4.3 Method Modifiers */ public String toString() { return sharedToString(Modifier.methodModifiers(), + isDefault(), parameterTypes, exceptionTypes); } @@ -389,16 +395,19 @@ * {@code public}, {@code protected} or {@code private} first, * and then other modifiers in the following order: * {@code abstract}, {@code static}, {@code final}, - * {@code synchronized}, {@code native}, {@code strictfp}. + * {@code synchronized}, {@code native}, {@code strictfp}, + * {@code default}. * * @return a string describing this {@code Method}, * include type parameters * * @since 1.5 + * + * @jls 8.4.3 Method Modifiers */ @Override public String toGenericString() { - return sharedToGenericString(Modifier.methodModifiers()); + return sharedToGenericString(Modifier.methodModifiers(), isDefault()); } @Override