You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org> on 2006/12/04 15:41:22 UTC

[jira] Updated: (HARMONY-2434) [classlib][beans] EventHandler.invoke retrows exceptions incorrectly

     [ http://issues.apache.org/jira/browse/HARMONY-2434?page=all ]

Nikolay Kuznetsov updated HARMONY-2434:
---------------------------------------

    Attachment: test_EventHandler.java

attached test demonstrates a problem, se output:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)

$ java test_EventHandler 
passed

DRLVM
$ ./java test_EventHandler
class java.lang.reflect.InvocationTargetException: null
failed

> [classlib][beans] EventHandler.invoke retrows exceptions incorrectly
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2434
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2434
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>         Attachments: test_EventHandler.java
>
>
> java.beans.EventHandler.invoke() catches any exceptions except runtimeException and dumps them to stdout. This contradicts to RI behavior which processes InvocationTargetException thrown by thrown by j.l.Method.invoke(), wrap exception caused it (InvocationTargetException.getTargetException()) into RuntimeException and re-throws it.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira