commit | fa664103dca272ebc7491b2eb481e177e19dba33 | [log] [tgz] |
---|---|---|
author | Gaurav Agrawal <gaurav.agrawal@huawei.com> | Tue Nov 21 21:24:13 2017 +0530 |
committer | GauravAgrawal-Huawei <gauravjbp3ster@gmail.com> | Wed Nov 22 10:02:15 2017 +0000 |
tree | b7ecc1ebdec99a4b7b0280f9ace790ca406b7360 | |
parent | c49d36d536204d7de9c733bf74bef745896fcc03 [diff] |
Fix typedef referencing another typedef issue. Change-Id: Ifbef6c16732e6867079a2767b3933fe164bdc37a
diff --git a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java index f7bc8d1..72221c4 100644 --- a/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java +++ b/compiler/base/datamodel/src/main/java/org/onosproject/yang/compiler/datamodel/utils/builtindatatype/ObjectProvider.java
@@ -100,8 +100,7 @@ YangType rt = ((YangDerivedInfo) typeInfo .getDataTypeExtendedInfo()).getReferredTypeDef() .getTypeList().get(0); - return getObject(rt, v, ((YangDerivedInfo) - typeInfo.getDataTypeExtendedInfo()).getEffectiveBuiltInType()); + return getObject(rt, v, rt.getDataType()); case UNION: return parseUnionTypeInfo(typeInfo, v); default: