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 2019/10/03 12:54:00 UTC

[jira] [Updated] (OWB-1214) Package annotation access is fragile

     [ https://issues.apache.org/jira/browse/OWB-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Romain Manni-Bucau updated OWB-1214:
------------------------------------
    Fix Version/s:     (was: 2.0.12)
                   2.0.13

> Package annotation access is fragile
> ------------------------------------
>
>                 Key: OWB-1214
>                 URL: https://issues.apache.org/jira/browse/OWB-1214
>             Project: OpenWebBeans
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>            Priority: Major
>             Fix For: 2.0.13
>
>
> If no classes were loaded from a parent package then the package annotations are ignored (@Vetoed included). You can test it creating a @Vetoed alone in a package root of all beans, there shouldnt be any bean but actually you'll get get.
> Solution is to load ${package}.package-info before getting the package in https://github.com/apache/openwebbeans/blob/8beef6d2d5b27dad1e2577a814fdd9da98a8acb7/webbeans-impl/src/main/java/org/apache/webbeans/config/BeansDeployer.java#L1309



--
This message was sent by Atlassian Jira
(v8.3.4#803005)