You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openwebbeans.apache.org by "Romain Manni-Bucau (JIRA)" <ji...@apache.org> on 2017/07/16 09:15:01 UTC

[jira] [Commented] (OWB-1200) OWB 2 skips producer methods defined in annotated bean archives in SE

    [ https://issues.apache.org/jira/browse/OWB-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16088859#comment-16088859 ] 

Romain Manni-Bucau commented on OWB-1200:
-----------------------------------------

From what i recal spec excludes implicit producers in implicit archives even if the outer bean is detected. At least that is what we did.

> 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)