[
https://issues.apache.org/jira/browse/OWB-1214?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16132026#comment-16132026
]
Mark Struberg commented on OWB-1214:
------------------------------------
We might do this, but we should kind of keep a cache with the already parsed
packages.
By doing so we might implement this pretty well performing.
> 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
> Fix For: 2.0.1
>
>
> 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
(v6.4.14#64029)