[
https://issues.apache.org/jira/browse/OWB-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12975071#action_12975071
]
David Jencks commented on OWB-493:
----------------------------------
The javadoc for ProcessProducerMethod (and ProcessProducerField) has changed to
keep the erroneous order of generic type parameters but change their meaning.
Old:
* @param <T> The class of the bean declaring the producer method
* @param <X> The return type of the producer method
new:
* @param <T> The return type of the producer method
* @param <X> The class of the bean declaring the producer method
public interface ProcessProducerMethod<T, X> extends ProcessBean<X>
The test now relates to this new meaning for the parameters. I think OWB does
not follow this new meaning. I don't think OWB was acting correctly according
to the original meaning since it was emitting ProcessProducerMethod events (the
original test passed) but the return type bean (Cow in this test) had no
producer methods so no ProcessProducerMethod event should be emitted when it's
processed.
> ProcessProducerMethod and ProcessProducerField type parameters are reversed
> in filtering (?) CDITCK-168
> --------------------------------------------------------------------------------------------------------
>
> Key: OWB-493
> URL: https://issues.apache.org/jira/browse/OWB-493
> Project: OpenWebBeans
> Issue Type: Bug
> Components: Events
> Affects Versions: 1.1.0
> Reporter: David Jencks
> Assignee: Gurkan Erdogdu
> Fix For: 1.1.0
>
>
> See https://jira.jboss.org/browse/CDITCK-168
> The tck extensions.processBean.ProcessBeanTest test had a couple errors where
> ProcessProducerMethod<Cowshed, Cow> was treated as a ProcessMethod<Cowshed>
> whereas it is a ProcessMethod<Cow>, and similarly for ProcessProducerField.
> OWB seems to be subject to the same error.
> public void observeCowProcessProducerMethod(@Observes
> ProcessProducerMethod<Cowshed, Cow> event)
> is getting called correctly for the ProcessProducerMethod, but
> public void observeCowShedProccesBean(@Observes ProcessBean<Cowshed> event)
> is getting called with the same event.
> I haven't been able to figure out where the problem is.
> The corrected test is in 1.0.2.CR3
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.