<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:16 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-261] IllegalArgumentException thrown when uses a grouping which name is not unique</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-261</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;An IllegalArgumentException thrown when uses a grouping which name is not unique such as &quot;grouping A &amp;amp; container A&quot; shown below, and then the wrong target node &quot;container A&quot; would be found by findOriginalTargetFromGrouping.&lt;br/&gt;
sample yang models&#65306;&lt;br/&gt;
1)&lt;br/&gt;
module groupings {&lt;br/&gt;
    namespace &quot;yang:test:main:my:groupings&quot;;&lt;br/&gt;
    prefix s;&lt;br/&gt;
    revision 2017-05-15 {&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    grouping A{&lt;br/&gt;
      container A1 {&lt;br/&gt;
        leaf leaf-A-A1 &lt;/p&gt;
{
            type string;
        }
&lt;p&gt;      }&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    container A{&lt;br/&gt;
        leaf leaf-A &lt;/p&gt;
{
                    type string;
        }
&lt;p&gt;    }&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;2)&lt;br/&gt;
module uses-augment-recursive {&lt;br/&gt;
    namespace &quot;yang:test:main:my:uses-augment-recursive&quot;;&lt;br/&gt;
    prefix r;&lt;/p&gt;

&lt;p&gt;    revision 2017-05-19 {&lt;br/&gt;
    }&lt;/p&gt;

&lt;p&gt;    import groupings &lt;/p&gt;
{
        prefix &quot;grp&quot;;
    }

&lt;p&gt;    grouping D{&lt;br/&gt;
         uses &quot;grp:A&quot; {&lt;br/&gt;
             augment &quot;A1&quot; {&lt;br/&gt;
                 leaf D-aug-A1 &lt;/p&gt;
{
                     type string;
                 }
&lt;p&gt;             }&lt;br/&gt;
         }&lt;br/&gt;
    }&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;java.lang.IllegalArgumentException: Failed to generate code for augment in UsesEffectiveStatementImpl[groupingPath=AbsoluteSchemaPath&lt;/p&gt;
{path=[(yang:test:main:my:groupings?revision=2017-05-15)A]}
&lt;p&gt;]&lt;/p&gt;

&lt;p&gt;        at org.opendaylight.mdsal.binding.javav2.generator.impl.AugmentToGenType.findOriginalTargetFromGrouping(AugmentToGenType.java:277)&lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.AugmentToGenType.usesAugmentationToGenTypes(AugmentToGenType.java:230)&lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.GenHelperUtil.processUsesAugments(GenHelperUtil.java:243)&lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.GenHelperUtil.groupingToGenType(GenHelperUtil.java:872)&lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.GenHelperUtil.groupingsToGenTypes(GenHelperUtil.java:829)&lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.ModuleToGenType.generate(ModuleToGenType.java:50)&lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.generator.impl.BindingGeneratorImpl.generateTypes(BindingGeneratorImpl.java:126)&lt;br/&gt;
        at org.opendaylight.mdsal.binding.javav2.java.api.generator.GeneratorJavaFileTest.myGeneratedFilesTest(GeneratorJavaFileTest.java:38)&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:498)&lt;br/&gt;
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)&lt;br/&gt;
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)&lt;br/&gt;
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)&lt;br/&gt;
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)&lt;br/&gt;
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)&lt;br/&gt;
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)&lt;br/&gt;
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)&lt;br/&gt;
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)&lt;br/&gt;
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)&lt;br/&gt;
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)&lt;br/&gt;
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)&lt;br/&gt;
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)&lt;br/&gt;
        at org.junit.runners.ParentRunner.run(ParentRunner.java:309)&lt;br/&gt;
        at org.junit.runner.JUnitCore.run(JUnitCore.java:160)&lt;br/&gt;
        at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)&lt;br/&gt;
        at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:51)&lt;br/&gt;
        at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)&lt;br/&gt;
        at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="27083">MDSAL-261</key>
            <summary>IllegalArgumentException thrown when uses a grouping which name is not unique</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="10000">Done</resolution>
                                        <assignee username="han.jie@zte.com.cn">Jie Han</assignee>
                                    <reporter username="han.jie@zte.com.cn">Jie Han</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Jun 2017 02:25:45 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:21 +0000</updated>
                            <resolved>Tue, 19 Sep 2017 08:18:37 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="54687" author="han.jie@zte.com.cn" created="Thu, 1 Jun 2017 02:55:21 +0000"  >&lt;p&gt;path:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/58090/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/58090/&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>8575</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=8575]]></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|i02xb3:</customfieldvalue>

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