[ https://issues.apache.org/jira/browse/OWB-1215?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg reassigned OWB-1215: ---------------------------------- Assignee: Mark Struberg > Specializing more then one producer method not working > ------------------------------------------------------ > > Key: OWB-1215 > URL: https://issues.apache.org/jira/browse/OWB-1215 > Project: OpenWebBeans > Issue Type: Bug > Components: Inheritance, Specialization > Affects Versions: 2.0.0 > Reporter: Jan Krpata > Assignee: Mark Struberg > > A have problem with specializing a producer method > - https://docs.jboss.org/cdi/spec/2.0/cdi-spec.html#specialize_producer_method > I have class A with many @Produces methods. > I have class B extends A, where I can override some producer methods (more > then one and not all) from superclass. The other producer methods must be > still enabled from superclass. > Method WebBeansUtil.configureProducerMethodSpecializations throw > WebBeansDeploymentException "Multiple specializations for the same producer > method got detected for type". > Example: > {code:java} > public class A { > @Produces > @OneProducesMethod > public Boolean getX() { ...} > @Produces > @TwoProducesMethod > public Boolean getY() { ...} > @Produces > @ThreeProducesMethod > public Boolean getZ() { ...} > } > public class B extends A { > @Produces > @Specializes > @OneProducesMethod > public Boolean getX() { ...} > @Produces > @Specializes > @TwoProducesMethod > public Boolean getY() { ...} > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)