Uploaded image for project: 'OpenWebBeans'
  1. OpenWebBeans
  2. OWB-1214

Package annotation access is fragile

VotersWatch issueWatchersConvert to sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment Visibility
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.17
    • Component/s: None
    • Labels:
      None

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              romain.manni-bucau Romain Manni-Bucau
              Reporter:
              romain.manni-bucau Romain Manni-Bucau

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment