[
https://issues.apache.org/jira/browse/OWB-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088883#comment-16088883
]
John D. Ament commented on OWB-1200:
------------------------------------
Agreed, this wouldn't work in an implicit bean archive. However, this JAR is
an explicit bean archive. It has a beans.xml just with
bean-discovery-mode=annotated.
> OWB 2 skips producer methods defined in annotated bean archives in SE
> ---------------------------------------------------------------------
>
> Key: OWB-1200
> URL: https://issues.apache.org/jira/browse/OWB-1200
> Project: OpenWebBeans
> Issue Type: Bug
> Reporter: John D. Ament
>
> Here's a code sample that fails for me
> https://github.com/astefanutti/metrics-cdi/blob/29e7bac497513de420543497612180331cc5d1b3/impl/src/main/java/io/astefanutti/metrics/cdi/MetricNameFactory.java#L24
> Basically, from what I can tell OWB 2 misses this producer method, I believe
> because it doesn't have a scope but the outer bean class does have a scope.
> AFAIK, per the spec, this is implicitly a `@Dependent` producer and should
> have been picked up because the outer bean is defined as a dependent scoped
> bean.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)