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:02:21 UTC

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

[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


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

        

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

Posted by "Nikolay Kuznetsov (JIRA)" <ji...@apache.org>.
     [ 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

        

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

Posted by "Tim Ellison (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/HARMONY-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12545864 ] 

Tim Ellison commented on HARMONY-2434:
--------------------------------------

FYI:  test still fails at repo revision r598654.


> [classlib][beans] EventHandler.invoke retrows exceptions incorrectly
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2434
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2434
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov updated HARMONY-2434:
-------------------------------------

    Priority: Minor  (was: Major)

Priority was set to Minor

> [classlib][beans] EventHandler.invoke retrows exceptions incorrectly
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2434
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2434
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>            Priority: Minor
>         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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Kevin Zhou (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kevin Zhou updated HARMONY-2434:
--------------------------------

    Attachment: Harmony-2434.diff

I have a patch for this defect.
Would you please try it?


> [classlib][beans] EventHandler.invoke retrows exceptions incorrectly
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2434
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2434
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>            Priority: Minor
>         Attachments: Harmony-2434.diff, 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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu reassigned HARMONY-2434:
---------------------------------

    Assignee: Sean Qiu

> [classlib][beans] EventHandler.invoke retrows exceptions incorrectly
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2434
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2434
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>            Assignee: Sean Qiu
>            Priority: Minor
>         Attachments: Harmony-2434.diff, 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.
-
You can reply to this email to add a comment to the issue online.


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

Posted by "Sean Qiu (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-2434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sean Qiu resolved HARMONY-2434.
-------------------------------

    Resolution: Fixed

Patch applied at r 663434.
Could you please verify it if it works as you expected?
Thanks.

> [classlib][beans] EventHandler.invoke retrows exceptions incorrectly
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2434
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2434
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Nikolay Kuznetsov
>            Assignee: Sean Qiu
>            Priority: Minor
>         Attachments: Harmony-2434.diff, 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.
-
You can reply to this email to add a comment to the issue online.