diff -r 460e37d40f12 -r acaa49a2768a jdk/src/share/classes/javax/management/JMRuntimeException.java --- a/jdk/src/share/classes/javax/management/JMRuntimeException.java Wed Oct 21 16:28:57 2009 +0200 +++ b/jdk/src/share/classes/javax/management/JMRuntimeException.java Wed Oct 21 17:33:18 2009 +0200 @@ -58,22 +58,6 @@ * specification. A later version may make it public. */ JMRuntimeException(String message, Throwable cause) { - super(message); - - /* Make a best effort to set the cause, but if we don't - succeed, too bad, you don't get that useful debugging - information. We jump through hoops here so that we can - work on platforms prior to J2SE 1.4 where the - Throwable.initCause method was introduced. If we change - the public interface of JMRuntimeException in a future - version we can add getCause() so we don't need to do this. */ - try { - java.lang.reflect.Method initCause = - Throwable.class.getMethod("initCause", - new Class[] {Throwable.class}); - initCause.invoke(this, new Object[] {cause}); - } catch (Exception e) { - // OK: just means we won't have debugging info - } + super(message, cause); } }