From: Scott M S. <st...@us...> - 2004-04-28 07:00:00
|
User: starksm Date: 04/04/27 23:59:51 Modified: src/main/org/jboss/mx/server ReflectedDispatcher.java Log: Wrap all RuntimeExceptions in RuntimeMBeanException Revision Changes Path 1.12 +3 -3 jmx/src/main/org/jboss/mx/server/ReflectedDispatcher.java Index: ReflectedDispatcher.java =================================================================== RCS file: /cvsroot/jboss/jmx/src/main/org/jboss/mx/server/ReflectedDispatcher.java,v retrieving revision 1.11 retrieving revision 1.12 diff -u -r1.11 -r1.12 --- ReflectedDispatcher.java 22 Apr 2004 21:20:20 -0000 1.11 +++ ReflectedDispatcher.java 28 Apr 2004 06:59:51 -0000 1.12 @@ -20,7 +20,7 @@ /** * * @author <a href="mailto:ju...@jb...">Juha Lindfors</a>. - * @version $Revision: 1.11 $ + * @version $Revision: 1.12 $ * */ public class ReflectedDispatcher @@ -76,8 +76,8 @@ Throwable target = ((InvocationTargetException)t).getTargetException(); if (target instanceof JMException) target = new MBeanException((JMException) target); - else if (target instanceof JMRuntimeException) - target = new RuntimeMBeanException((JMRuntimeException) target); + else if( target instanceof RuntimeException ) + target = new RuntimeMBeanException((RuntimeException) target); throw new InvocationException(target, target.toString()); } |