Bug 865: Fixed incorrect conversion to new APIs. 15/9015/1
authorTony Tkacik <ttkacik@cisco.com>
Tue, 15 Jul 2014 10:42:37 +0000 (12:42 +0200)
committerTony Tkacik <ttkacik@cisco.com>
Tue, 15 Jul 2014 10:42:37 +0000 (12:42 +0200)
Change-Id: I585e4d9142dc261317661c4442c771db791a46de
Signed-off-by: Tony Tkacik <ttkacik@cisco.com>
code-generator/binding-generator-impl/src/main/java/org/opendaylight/yangtools/sal/binding/generator/impl/BindingGeneratorImpl.java

index 66f973fcab1a300c000f48c44d0a8c86f4dca505..0e6a8e473cb217764e6d4ef7a712e69cbbc390ee 100644 (file)
@@ -592,7 +592,7 @@ public class BindingGeneratorImpl implements BindingGenerator {
             newType.setExtendsType(gto.toInstance());
         } else {
             final Module baseIdentityParentModule = SchemaContextUtil.findParentModule(context, baseIdentity);
-            final String returnTypePkgName = BindingMapping.getRootPackageName(module.getQNameModule());
+            final String returnTypePkgName = BindingMapping.getRootPackageName(baseIdentityParentModule.getQNameModule());
             final String returnTypeName = BindingMapping.getClassName(baseIdentity.getQName());
             final GeneratedTransferObject gto = new GeneratedTOBuilderImpl(returnTypePkgName, returnTypeName)
                     .toInstance();