<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:51 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-458] Binding V1 fails to generate code with union leaf named same as parent</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-458</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;Some combinations of nested leafs and&#160;unions causes generation of invalid binding code.&lt;br/&gt;
See attached example &lt;span class=&quot;nobr&quot;&gt;&lt;a href=&quot;mailto:module%C2%A0test-model@2019-06-24.yang&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;module&#160;test-model@2019-06-24.yang&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;https://jira.opendaylight.org/images/icons/mail_small.gif&quot; height=&quot;12&quot; width=&quot;13&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/sup&gt;&lt;/a&gt;&lt;/span&gt;&#160;and maven-build.log&lt;/p&gt;

&lt;p&gt;Reproduced with neon and sodium releases.&#160;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="31756">MDSAL-458</key>
            <summary>Binding V1 fails to generate code with union leaf named same as parent</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.opendaylight.org/images/icons/priorities/major.svg">Medium</priority>
                        <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="10000">Done</resolution>
                                        <assignee username="rovarga">Robert Varga</assignee>
                                    <reporter username="juraj.veverka">Juraj Veverka</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Jun 2019 14:01:39 +0000</created>
                <updated>Thu, 27 Jun 2019 17:56:46 +0000</updated>
                            <resolved>Thu, 27 Jun 2019 17:56:10 +0000</resolved>
                                    <version>3.0.8</version>
                    <version>4.0.2</version>
                                    <fixVersion>3.0.9</fixVersion>
                    <fixVersion>4.0.3</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="66928" author="rovarga" created="Tue, 25 Jun 2019 13:24:16 +0000"  >&lt;p&gt;Minimal test case:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;&#160; choice exported {
&#160;&#160;&#160; // implies &apos;case exported-to&apos;
&#160;&#160;&#160; leaf exported-to {
&#160;&#160;&#160;&#160;&#160; type union {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; type enumeration {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; enum &quot;netconf&quot;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; enum &quot;cli&quot;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160;&#160;&#160;&#160;&#160; type string;
&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160; }
&#160; }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;i.e. we are in ExportedTo case and are attempting to create ExportedTo nested class, which is not allowed by JLS.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="66943" author="rovarga" created="Wed, 26 Jun 2019 11:57:00 +0000"  >&lt;p&gt;This also affects type bits and is not specific to choice/case, as the following fails, too:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&#160; container exported-to {
&#160;&#160;&#160; leaf exported-to {
&#160;&#160;&#160;&#160;&#160; type union {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; type enumeration {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;netconf&quot;&lt;/span&gt;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;cli&quot;&lt;/span&gt;;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160;&#160;&#160;&#160;&#160; type string;
&#160;&#160;&#160;&#160;&#160; }
&#160;&#160;&#160; }
&#160; }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15232" name="maven-build.log" size="8146" author="juraj.veverka" created="Mon, 24 Jun 2019 14:00:43 +0000"/>
                            <attachment id="15231" name="pom.xml" size="575" author="juraj.veverka" created="Mon, 24 Jun 2019 14:01:20 +0000"/>
                            <attachment id="15233" name="test-model@2019-06-24.yang" size="763" author="juraj.veverka" created="Mon, 24 Jun 2019 14:00:35 +0000"/>
                    </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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03o8f:</customfieldvalue>

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