[cdi-dev] [JBoss JIRA] (CDI-277) Clarify inheritance behavior of observer methods
Arne Limburg (JIRA)
jira-events at lists.jboss.org
Sun Oct 14 05:48:01 EDT 2012
[ https://issues.jboss.org/browse/CDI-277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12726251#comment-12726251 ]
Arne Limburg commented on CDI-277:
----------------------------------
Yes, in addition to the bullet point I suggest in the description above, there should be a bullet point that clarifies inheritance for specializing beans.
So either
- If Y specializes X (as defined in Section 3.1.4, "Specializing a managed bean" and Section 3.2.4, "Specializing a session bean") and X declares a non-static observer method x() then Y does inherit this method.
or
- If Y specializes X (as defined in Section 3.1.4, "Specializing a managed bean" and Section 3.2.4, "Specializing a session bean") and X declares a non-static observer method x() then Y does not inherit this method. (This behavior is different to what is defined in the Common Annotations for the Java Platform specification.)
should be added.
If the first is taken, then the last sentence of 4.3 has to be changed to "Even if the second bean defines a producer or observer method, the method will never be called on a contextual instance of the second bean."
In addition similar bullet points must be added for producer methods.
> Clarify inheritance behavior of observer methods
> ------------------------------------------------
>
> Key: CDI-277
> URL: https://issues.jboss.org/browse/CDI-277
> Project: CDI Specification Issues
> Issue Type: Clarification
> Reporter: Arne Limburg
>
> Chapter 4.2 of the (1.0) spec misses a bullet point about inheritance of observer methods.
> Either
> - If X declares a non-static observer method x() then Y does inherit this method.
> or
> - If X declares a non-static observer method x() then Y does not inherit this method.
> (This behavior is different to what is defined in the Common Annotations for the Java Platform specification.)
> should be added.
> Don't know, what's right through...
--
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
More information about the cdi-dev
mailing list