<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:11:01 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-810] Disambiguate generated classes based on source statement</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-810</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-502&quot; title=&quot;mdsal source generator resolves &amp;quot;-&amp;quot;  &amp;quot;_&amp;quot;  as the same thing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-502&quot;&gt;MDSAL-502&lt;/a&gt; describes a rather ugly case where the original models themselves are generated and use a weird mix of naming.&lt;/p&gt;

&lt;p&gt;While the complete solution still requires a bijective mapping, that ends up going to Unicode-land for a solution, which will invariably make things very unreadable.&lt;/p&gt;

&lt;p&gt;We already need to deal with YANG statement namespace overlap, as we are mapping multiple constructs into Java FQCN namespace: identity, feature, container, etc., so we are already equipped to deal with:&lt;/p&gt;

&lt;p&gt;&#160;&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;module foo {
  identity foo;
  feature foo;
  container foo;
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;This disambiguation stops at schema tree statements vs. others, hence we do not handle this:&lt;/p&gt;

&lt;p&gt;&#160;&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;module foo {
  anydata foo.bar;
  anyxml foo-bar;
  container Foo.Bar;
  list Foo-Bar;
  leaf foo.Bar;
  leaf-list foo-Bar;
  notification Foo.bar;
  rpc Foo-bar;
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;and some other cases we generate Java constructs.&lt;/p&gt;

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

&lt;p&gt;We can improve the situation by generalizing over &apos;class source statement&apos; and assign a $XX suffix, similar to $F, $G, $I, and $YD we already assign.&lt;/p&gt;

&lt;p&gt;There is already a FIXME to assign two-letter suffixes for a number of these, let&apos;s bring this in.&lt;/p&gt;

&lt;p&gt;The advantage of doing this renaming before &lt;a href=&quot;https://jira.opendaylight.org/browse/MDSAL-502&quot; title=&quot;mdsal source generator resolves &amp;quot;-&amp;quot;  &amp;quot;_&amp;quot;  as the same thing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;MDSAL-502&quot;&gt;MDSAL-502&lt;/a&gt; is that it involves &apos;$&apos;, which is not nice, but it does not involve weird Unicode characters (which works, but working with it is a ... &lt;b&gt;memorable&lt;/b&gt; .. experience).&lt;/p&gt;</description>
                <environment></environment>
        <key id="36638">MDSAL-810</key>
            <summary>Disambiguate generated classes based on source statement</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="rovarga">Robert Varga</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Feb 2023 23:35:13 +0000</created>
                <updated>Sun, 5 Feb 2023 10:27:52 +0000</updated>
                            <resolved>Sun, 5 Feb 2023 10:27:52 +0000</resolved>
                                                    <fixVersion>11.0.6</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10300">
                    <name>Issue split</name>
                                                                <inwardlinks description="split from">
                                        <issuelink>
            <issuekey id="32262">MDSAL-502</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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i0445b:</customfieldvalue>

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