Index: tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/beans/eventhandler/InvocationExceptionTest.java =================================================================== --- tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/beans/eventhandler/InvocationExceptionTest.java (revision 553060) +++ tests/functional/src/test/functional/org/apache/harmony/test/func/api/java/beans/eventhandler/InvocationExceptionTest.java (working copy) @@ -57,10 +57,21 @@ makeInvocation.create(); makeInvocation.invoke("fireFredEvent", null, invokeByTypeCasting); return fail("Exception wasn't throw"); - } catch (SimpleException e) { - return pass(); + } catch (RuntimeException e) { + if (!invokeByTypeCasting) { + return pass(); + } + } catch (Error e) { + if (!invokeByTypeCasting) { + return pass(); + } + } catch (java.lang.reflect.InvocationTargetException e) { + if (invokeByTypeCasting) { + return pass(); + } } catch (Exception e) { - return fail(e.getMessage()); + e.printStackTrace(); } + return fail("FAILED"); } } \ No newline at end of file