-
Bug
-
Resolution: Done
-
Major
-
EJB 3.0 RC5 - PFD
-
None
-
None
public Object invoke(String actionName, Object params[], String signature[])
throws MBeanException, ReflectionException
{
Method operation = getOperation(actionName, signature);
try
catch (Throwable t)
{ --> throw new MBeanException((Exception) t); }}
This causes an error when the Throwable is an Error.
Recommend:
throw new MBeanException(t instanceof Exception ? (Exception) t : new Exception(t));
I'm having a problem and can't diagnose it becuase the real cause is being hidden because a ClassCastException is overriding the original exception.