<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:32 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-58] Binding Java API Generator: Inner class with same name as outer class is not allowed</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-58</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;If model contains this structure:&lt;/p&gt;

&lt;p&gt;.&lt;br/&gt;
.&lt;br/&gt;
.&lt;br/&gt;
case group {&lt;br/&gt;
  leaf group {&lt;br/&gt;
    type union {&lt;br/&gt;
.&lt;br/&gt;
.&lt;br/&gt;
.&lt;/p&gt;


&lt;p&gt;binding generator generates Group interface with inner Group class, which is not compilable. &lt;br/&gt;
It&apos;s supposed to be fixed within binding specification version 2&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="26880">MDSAL-58</key>
            <summary>Binding Java API Generator: Inner class with same name as outer class is not allowed</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</type>
                                                <status id="10004" iconUrl="https://jira.opendaylight.org/images/icons/status_generic.gif" description="">Verified</status>
                    <statusCategory id="3" key="done" colorName="green"/>
                                    <resolution id="10000">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="martin.ciglan">Martin Ciglan</reporter>
                        <labels>
                    </labels>
                <created>Wed, 12 Nov 2014 10:30:46 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:05 +0000</updated>
                            <resolved>Thu, 1 Mar 2018 10:29:53 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="54048" author="shivani.pathak@tcs.com" created="Fri, 20 Nov 2015 06:36:46 +0000"  >&lt;p&gt;As this problem persists specifically when &lt;span class=&quot;error&quot;&gt;&amp;#91;case and leaf name is same&amp;#93;&lt;/span&gt; &amp;amp; &lt;span class=&quot;error&quot;&gt;&amp;#91;leaf Type is &amp;#39;Union&amp;#39;&amp;#93;&lt;/span&gt;,one option is to add some prefix with the name of the inner class(corresponding to the leaf) while converting Yang into Java code so that there will not be any conflict between outer class and inner class name.&lt;/p&gt;

&lt;p&gt;Below is an example for the same:&lt;/p&gt;

&lt;p&gt;Ex.Container mycont{&lt;br/&gt;
 choice Choice{&lt;br/&gt;
  case myCase{&lt;br/&gt;
   leaf myCase{&lt;br/&gt;
     type Union&lt;/p&gt;
{
      type int32;
      type string;
     }
&lt;p&gt;   }&lt;br/&gt;
  }&lt;br/&gt;
 }&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;An interface will be created for case &apos;MyCase.java&apos; with an inner class named &apos;MyCase&apos;.&lt;/p&gt;

&lt;p&gt;We can add a check to append a prefix to the inner class such as InnerMyCase.&lt;/p&gt;

&lt;p&gt;Please suggest and provide any references/documents if any to help me in making the changes in specific generators as this scenario is very particular and the suggested chnage will have a generic impact on so many scenarios.&lt;/p&gt;</comment>
                            <comment id="54049" author="martin.ciglan" created="Fri, 11 Mar 2016 10:30:39 +0000"  >&lt;p&gt;solution of this issue is part of new Binding specification v2, which is going to be designed and implemented in Boron&lt;/p&gt;</comment>
                            <comment id="54050" author="vrpolak" created="Wed, 6 Jul 2016 11:37:02 +0000"  >&lt;p&gt;More example structures:&lt;br/&gt;
...&lt;br/&gt;
  container foo {&lt;br/&gt;
    leaf foo {&lt;br/&gt;
      type union {&lt;br/&gt;
...&lt;br/&gt;
  list bar {&lt;br/&gt;
    leaf bar {&lt;br/&gt;
      type union {&lt;br/&gt;
...&lt;/p&gt;</comment>
                            <comment id="54051" author="vrpolak" created="Wed, 6 Jul 2016 11:50:04 +0000"  >&lt;p&gt;A complete yang model for testing:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/41392&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/41392&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="59740" author="jiehan2017" created="Fri, 20 Oct 2017 08:39:48 +0000"  >&lt;p&gt;This issue has been resolved in binding2.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                                                <inwardlinks description="is blocked by">
                                        <issuelink>
            <issuekey id="27059">MDSAL-237</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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>2360</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=2360]]></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="10321"><![CDATA[Carbon]]></customfieldvalue>

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

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