[MDSAL-276] binding-data-codec does not work with boolean type using typedef Created: 28/Jul/17 Updated: 09/Mar/18 Resolved: 28/Jul/17 |
|
| Status: | Resolved |
| Project: | mdsal |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | zhuweisheng | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Operating System: All |
||
| Issue Links: |
|
||||||||
| External issue ID: | 8901 | ||||||||
| Description |
|
for example then I call toNormalizedNode(final InstanceIdentifier<T> path, final T data), it works normal. container default-policy{ . Expected child nodes: {getGlobalIp=GeneratedTransferObject [packageName=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.sec.policy.rule._default, name=GlobalIp, comment=null, annotations=[], implements=[Type (org.opendaylight.yangtools.yang.binding.ChildOf), Type (org.opendaylight.yangtools.yang.binding.Augmentable)], enclosedTypes=[], constants=[Constant [type=Type (org.opendaylight.yangtools.yang.common.QName), name=QNAME, value=org.opendaylight.yangtools.yang.common.QName.cachedReference(org.opendaylight.yangtools.yang.common.QName.create("urn:huawei:params:xml:ns:yang:huawei-security-policy","2017-04-15","global-ip")), definingType=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.sec.policy.rule._default.GlobalIp]], enumerations=[], properties=, methods=[MethodSignatureBuilderImpl [name=isDestination, returnType=Type (java.lang.Boolean), parameters=[], annotationBuilders=[], comment=Enable or disable destination global ip. True means enable and false means disable.]]], getPolicylog=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.PolicyLoggingFlag, getAction=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.ActionPolicyFlag, getSessionlog=org.opendaylight.yang.gen.v1.urn.huawei.params.xml.ns.yang.huawei.security.policy.rev170415.SessionLoggingFlag} at org.opendaylight.yangtools.binding.data.codec.gen.impl.DataNodeContainerSerializerSource.emitBody(DataNodeContainerSerializerSource.java:149) This could be a bug, Should we work it out? |