L K created WFLY-13692:
--------------------------
Summary: Anything in jboss-all.xml after <weld/> element is ignored
Key: WFLY-13692
URL:
https://issues.redhat.com/browse/WFLY-13692
Project: WildFly
Issue Type: Bug
Components: CDI / Weld
Affects Versions: 20.0.1.Final
Reporter: L K
Assignee: Matěj Novotný
Classes org.jboss.as.weld.WeldJBossAll10Parser and org.jboss.as.weld.WeldJBossAll11Parser
are incorrect. They do not parse <weld> element as XML, they just check attributes.
As a result, everything that comes after </weld> is ignored.
This jboss-all.xml fails, as expected:
{code:java}
<jboss xmlns="urn:jboss:1.0">
<some-stupid-element/>
<weld xmlns="urn:jboss:weld:1.1"/>
</jboss>
{code}
This one is successfully parsed (but must also fail):
{code:java}
<jboss xmlns="urn:jboss:1.0">
<weld xmlns="urn:jboss:weld:1.1"/>
<some-stupid-element/>
</jboss>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)