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