Uploaded image for project: 'Weld'
  1. Weld
  2. WELD-2071

Bean archives not scanned if there multiple bean archives with empty beans.xml on the classpath

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 2.2.6.Final, 2.3.x
    • None
    • None
    • Hide

      Unpack attached test case (Maven project).
      Build it with Maven.
      See test error.

      Show
      Unpack attached test case (Maven project). Build it with Maven. See test error.

    Description

      If during container initialisation the classpath contains multiple bean archives with empty beans.xml, then only one bean archive is scanned by Weld.

      This happens because DefaultBeanArchiveScanner puts BeansXml instances into a HashMap.
      Two or more bean archives with empty beans.xml would always have the same key, see BeansXml.EMPTY_BEANS_XML.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              frolovmx_jira Maxim Frolov (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: