You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "David Jencks (JIRA)" <ji...@apache.org> on 2010/11/16 22:40:14 UTC

[jira] Updated: (OWB-494) Subclasses with non-overriden observer methods not recognized as beans with observer methods

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

David Jencks updated OWB-494:
-----------------------------

    Attachment: OWB-494.patch

This fixes the problem but may cause other problems and may not fix all possible paths to similar problems.

> Subclasses with non-overriden observer methods not recognized as beans with observer methods
> --------------------------------------------------------------------------------------------
>
>                 Key: OWB-494
>                 URL: https://issues.apache.org/jira/browse/OWB-494
>             Project: OpenWebBeans
>          Issue Type: Bug
>          Components: Events
>    Affects Versions: 1.1.0
>            Reporter: David Jencks
>            Assignee: Gurkan Erdogdu
>             Fix For: 1.1.0
>
>         Attachments: OWB-494.patch
>
>
> In the 1.0.2.CR3 tck the relevant tests can be run with this:
>         <classes>
>             <class name="org.jboss.jsr299.tck.tests.event.EventTest">
>                 <methods>
>                     <include name="testNonStaticObserverMethodInherited"/>
>                     <include name="testNonStaticObserverMethodIndirectlyInherited"/>
>                 </methods>
>             </class>
>         </classes>
> The problem is that if you have a class A with a public observer method, and a subclass B that does not override the observer method, B is not recognized as having an observer method.
> I have a fix that makes the test pass but it looks to me as if there may be two code paths for finding observer methods and this only applies to one of them.  It also may have other undesirable side effects, or may fix a more general bug in owb.

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