fix JMX ObjectNameAddressUtil#toPathAddress
-------------------------------------------
Key: WFCORE-492
URL:
https://issues.jboss.org/browse/WFCORE-492
Project: WildFly Core
Issue Type: Bug
Affects Versions: 1.0.0.Alpha15
Reporter: Jeff Mesnil
Assignee: Jeff Mesnil
Fix For: 1.0.0.Alpha16
The code in ObjectNameAddressUtil#toPathAddress is wrong: it must look for the
childAddress's submodel, not the address of the registry itself.
The current code fails with the exception:
org.jboss.as.controller._private.OperationFailedRuntimeException: WFLYCTL0071: Duplicate
path element 'subsystem' found [ "WFLYCTL0071: Duplicate path element
'subsystem' found" ]