[
https://issues.apache.org/jira/browse/OWB-711?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13475635#comment-13475635
]
Arne Limburg commented on OWB-711:
----------------------------------
Hi Mark,
Yes, you are right about the needed clarifications. OWB will behave that way
from 1.1.7 on.
As you wrote, a private observer method in a superclass cannot be disabled at
all...
Static methods cannot be overridden, but should not belong to beans of
subclasses. I completely missed that case and I belief OWB acts wrong here. I
will create a separate ticket for that case.
So imho static observer methods should be disabled if the bean of that class is
disabled (regardless of being subclassed) i.e. by specialization.
> Specialization does not deactivate Observer methods in parent class
> -------------------------------------------------------------------
>
> Key: OWB-711
> URL: https://issues.apache.org/jira/browse/OWB-711
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Inheritance, Specialization
> Affects Versions: 1.1.5
> Reporter: Daniel Sachse
> Assignee: Arne Limburg
> Labels: patch
> Fix For: 1.1.7
>
> Attachments: Observer, Alternative, Specialize.patch
>
>
> I found some bugs regarding @Specializes and Observer methods.
> The scenarios:
> @Specializes Bean without overriding Observer-method: Observer gets called
> @Specializes Bean with Overridden Observer-method: Overridden Observer gets
> called twice
> @Alternative @Specializes Bean without overriding Observer-method: Observer
> gets called
> @Alternative @Specializes Bean with overridden Observer-method: Overridden
> Observer gets called twice
> I attached a patch file for the tests which do of course fail at the moment ;)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira