You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Zakharov (JIRA)" <ji...@apache.org> on 2007/06/22 00:48:26 UTC

[jira] Resolved: (HARMONY-4033) [classlib][beans] A listener created by means of EventHandler.create() does not work

     [ https://issues.apache.org/jira/browse/HARMONY-4033?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexei Zakharov resolved HARMONY-4033.
--------------------------------------

    Resolution: Fixed
      Assignee: Alexei Zakharov

Thanks everyone. The patch was applied at the revision 549637. Please verify it was applied as expected and solves the above-mentioned issue.

> [classlib][beans] A listener created by means of EventHandler.create() does not work
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-4033
>                 URL: https://issues.apache.org/jira/browse/HARMONY-4033
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Roman S. Bushmanov
>            Assignee: Alexei Zakharov
>         Attachments: H-4033.patch, test.zip
>
>
> A listener created by
> EventHandler.create(FredListener.class, target, "methodWithoutParam", null, "fireFredEvent")
> doesn't call target.methodWithoutParam() method when its fireFredEvent(event) method is called.
> To reproduce the issue please run the attached test.
> The expected output is "OK". 
> Harmony throws the following exception instead.
> java.lang.reflect.InvocationTargetException
>         at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>         at java.lang.reflect.Method.invoke(Method.java:382)
>         at Test.main(Test.java:11)
> Caused by: java.lang.IllegalArgumentException: Invalid method call
>         at java.beans.EventHandler.invoke(EventHandler.java:96)
>         at $Proxy0.fireFredEvent(Unknown Source)
>         at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>         ... 2 more
> Affected tests:
> functional/org/apache/harmony/test/func/api/java/beans/eventhandler/ImplementationOnlyOneMethodFalse.xml
> functional/org/apache/harmony/test/func/api/java/beans/eventhandler/ImplementationOnlyOneMethodTrue.xml
> (see HARMONY-3528)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.