<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:12 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>OpenDaylight JIRA</title>
    <link>https://jira.opendaylight.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>8.20.10</version>
        <build-number>820010</build-number>
        <build-date>22-06-2022</build-date>
    </build-info>


<item>
            <title>[MDSAL-247] Failed to compile container&apos;s child leaf node with enum type when they have the same name</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-247</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;1.Yang file :&lt;/p&gt;

&lt;p&gt;  container apple {&lt;/p&gt;

&lt;p&gt;        leaf apple {&lt;/p&gt;

&lt;p&gt;            type enumeration {&lt;br/&gt;
                enum red &lt;/p&gt;
{
                    value 0 ;
                }
&lt;p&gt;                enum green &lt;/p&gt;
{
                    value 1 ;
                }
&lt;p&gt;            }&lt;br/&gt;
        }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;2. Compiling error:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; /home/workspace/code/bier-c/common/models/ietf-multicast-information-2016-10-28/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/urn/yang/test/container/leaf/same/test/rev170425/Apple.java:&lt;span class=&quot;error&quot;&gt;&amp;#91;87,88&amp;#93;&lt;/span&gt; cannot find symbol&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; symbol:   class Apple&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; location: interface org.opendaylight.yang.gen.v1.urn.yang.test.container.leaf.same.test.rev170425.Apple&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; /home/workspace/code/bier-c/common/models/ietf-multicast-information-2016-10-28/target/generated-sources/mdsal-binding/org/opendaylight/yang/gen/v1/urn/yang/test/container/leaf/same/test/rev170425/Apple.java:&lt;span class=&quot;error&quot;&gt;&amp;#91;30,12&amp;#93;&lt;/span&gt; interface org.opendaylight.yang.gen.v1.urn.yang.test.container.leaf.same.test.rev170425.Apple is already defined in package&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27069">MDSAL-247</key>
            <summary>Failed to compile container&apos;s child leaf node with enum type when they have the same name</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="5" iconUrl="https://jira.opendaylight.org/images/icons/statuses/resolved.png" description="A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">Resolved</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="gu.min1@zte.com.cn">GU Min</reporter>
                        <labels>
                    </labels>
                <created>Wed, 26 Apr 2017 08:26:54 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:20 +0000</updated>
                            <resolved>Tue, 19 Sep 2017 08:21:46 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="54654" author="pkajsa" created="Wed, 26 Apr 2017 17:41:42 +0000"  >&lt;p&gt;It is binding generator issue, so moved to mdsal.&lt;/p&gt;</comment>
                            <comment id="54655" author="martin.ciglan" created="Thu, 27 Apr 2017 06:12:57 +0000"  >&lt;p&gt;hi, this is well known bug of binding spec v1 and it&apos;s not going to be fixed there. Binding spec v2 solves this kind of issues.&lt;/p&gt;</comment>
                            <comment id="54656" author="gu.min1@zte.com.cn" created="Wed, 3 May 2017 06:57:13 +0000"  >&lt;p&gt;(In reply to Martin Ciglan from comment #2)&lt;br/&gt;
&amp;gt; hi, this is well known bug of binding spec v1 and it&apos;s not going to be fixed&lt;br/&gt;
&amp;gt; there. Binding spec v2 solves this kind of issues.&lt;/p&gt;</comment>
                            <comment id="54657" author="gu.min1@zte.com.cn" created="Wed, 3 May 2017 07:05:20 +0000"  >&lt;p&gt;hi,Martin, thanks for your reply. I&apos;ve tried binding2 by using binding2 as parent in pom as following:&lt;/p&gt;

&lt;p&gt;&amp;lt;parent&amp;gt;&lt;br/&gt;
    &amp;lt;groupId&amp;gt;org.opendaylight.mdsal&amp;lt;/groupId&amp;gt;&lt;br/&gt;
    &amp;lt;artifactId&amp;gt;mdsal-model-binding2-parent&amp;lt;/artifactId&amp;gt;&lt;br/&gt;
    &amp;lt;version&amp;gt;0.10.0-SNAPSHOT&amp;lt;/version&amp;gt;&lt;br/&gt;
    &amp;lt;relativePath/&amp;gt;&lt;br/&gt;
&amp;lt;/parent&amp;gt;&lt;/p&gt;

&lt;p&gt;Is it right to use it in this way? &lt;/p&gt;


&lt;p&gt;and there is still an error :&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; yang-to-sources: Unable to generate sources with org.opendaylight.mdsal.binding.javav2.maven.api.gen.plugin.CodeGeneratorImpl generator&lt;br/&gt;
java.lang.NullPointerException&lt;br/&gt;
	at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:210)&lt;br/&gt;
	at com.google.common.base.Optional.of(Optional.java:85)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.generator.util.generated.type.builder.EnumerationBuilderImpl$EnumerationImpl.getDescription(EnumerationBuilderImpl.java:244)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.util.TextTemplateUtil.formatDataForJavaDoc(TextTemplateUtil.java:142)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.txt.enumTemplate_Scope0$enumTemplate_Scope1$enumTemplate.apply(enumTemplate.template.scala:31)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.txt.enumTemplate_Scope0$enumTemplate_Scope1$enumTemplate.render(enumTemplate.template.scala:83)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.txt.enumTemplate.render(enumTemplate.template.scala)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.renderers.InterfaceRenderer.body(InterfaceRenderer.java:62)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.renderers.BaseRenderer.generateTemplate(BaseRenderer.java:363)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.InterfaceGenerator.generate(InterfaceGenerator.java:33)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.GeneratorJavaFile.generateTypeToJavaFile(GeneratorJavaFile.java:191)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.java.api.generator.GeneratorJavaFile.generateToFile(GeneratorJavaFile.java:105)&lt;br/&gt;
	at org.opendaylight.mdsal.binding.javav2.maven.api.gen.plugin.CodeGeneratorImpl.generateSources(CodeGeneratorImpl.java:91)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSourcesWithOneGenerator(YangToSourcesProcessor.java:333)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.generateSources(YangToSourcesProcessor.java:275)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.execute(YangToSourcesProcessor.java:96)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesProcessor.conditionalExecute(YangToSourcesProcessor.java:117)&lt;br/&gt;
	at org.opendaylight.yangtools.yang2sources.plugin.YangToSourcesMojo.execute(YangToSourcesMojo.java:121)&lt;br/&gt;
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)&lt;br/&gt;
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)&lt;br/&gt;
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)&lt;br/&gt;
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)&lt;br/&gt;
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)&lt;br/&gt;
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)&lt;br/&gt;
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)&lt;br/&gt;
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;br/&gt;
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)&lt;br/&gt;
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;br/&gt;
	at java.lang.reflect.Method.invoke(Method.java:483)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)&lt;br/&gt;
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; yang-to-sources: One or more code generators failed, including failed list(generatorClass=exception) &lt;/p&gt;
{org.opendaylight.mdsal.binding.javav2.maven.api.gen.plugin.CodeGeneratorImpl=java.lang.NullPointerException}&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; ------------------------------------------------------------------------&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; BUILD FAILURE&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; ------------------------------------------------------------------------&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; Total time: 18.751 s&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; Finished at: 2017-05-03T14:54:47+08:00&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; Final Memory: 34M/119M&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;INFO&amp;#93;&lt;/span&gt; ------------------------------------------------------------------------&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Failed to execute goal org.opendaylight.yangtools:yang-maven-plugin:1.1.0-SNAPSHOT:generate-sources (binding2) on project ietf-multicast-information-2016-10-28: yang-to-sources: One or more code generators failed, including failed list(generatorClass=exception) {org.opendaylight.mdsal.binding.javav2.maven.api.gen.plugin.CodeGeneratorImpl=java.lang.NullPointerException}
&lt;p&gt; -&amp;gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;Help 1&amp;#93;&lt;/span&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; To see the full stack trace of the errors, re-run Maven with the -e switch.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; Re-run Maven using the -X switch to enable full debug logging.&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; For more information about the errors and possible solutions, please read the following articles:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;ERROR&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;Help 1&amp;#93;&lt;/span&gt; &lt;a href=&quot;http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54658" author="martin.ciglan" created="Wed, 3 May 2017 07:47:57 +0000"  >&lt;p&gt;that&apos;s missing description statement in your model, try with this fix&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/56424/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/56424/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54659" author="martin.ciglan" created="Wed, 3 May 2017 08:11:18 +0000"  >&lt;p&gt;OK, I&apos;m getting BUILD SUCCESS now, but generated code is not compilable yet, so I will look into it.&lt;/p&gt;</comment>
                            <comment id="54660" author="martin.ciglan" created="Wed, 10 May 2017 06:34:09 +0000"  >&lt;p&gt;and the last patch:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/56489/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/56489/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="54661" author="martin.ciglan" created="Wed, 10 May 2017 14:14:55 +0000"  >&lt;p&gt;stable/carbon cherrypick merged:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/56772&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/56772&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                            <customfield id="customfield_11400" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8308</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10201" key="com.atlassian.jira.plugin.system.customfieldtypes:url">
                        <customfieldname>External issue URL</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[https://bugs.opendaylight.org/show_bug.cgi?id=8308]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10204" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>ODL SR Target Milestone</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10337"><![CDATA[Carbon-SR2]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i02x7z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                </customfields>
    </item>
</channel>
</rss>