<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:55 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>[YANGTOOLS-335] Potentional bug: AbstractGeneratedTypeBuilder allows multiple addition of elements witch equals</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-335</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;Potentional bug: AbstractGeneratedTypeBuilder allows multiple addition (via add* methods) of elements witch equals. Check of duplicity of added elements is missing in add* methods of AbstractGeneratedTypeBuilder and subclass GeneratedTypeBuilderImpl.   &lt;/p&gt;

&lt;p&gt;For an example, it is possible to add two constants with the same type, name and value:&lt;/p&gt;

&lt;p&gt;GeneratedTypeBuilder generatedTypeBuilder = new GeneratedTypeBuilderImpl(&quot;my.package&quot;,&quot;MyName&quot;);&lt;/p&gt;

&lt;p&gt;Constant constant1 = generatedTypeBuilder.addConstant(Types.typeForClass(String.class), &quot;myConstant&quot;, &quot;myConstantValue&quot;);&lt;/p&gt;

&lt;p&gt;Constant constant2 = generatedTypeBuilder.addConstant(Types.typeForClass(String.class), &quot;myConstant&quot;, &quot;myConstantValue&quot;);&lt;/p&gt;

&lt;p&gt;constant2 != null //true, constant2 is not null&lt;br/&gt;
constant2 != constant1 //true, constant2 is a reference to new object&lt;br/&gt;
constant2.equals(constant1); // true, constant1 and constant2 are equal (they have the same name, type and value)&lt;/p&gt;

&lt;p&gt;generatedTypeBuilder.toInstance().getConstantDefinitions().size() //2&lt;/p&gt;

&lt;p&gt;The same behavior is present also in other add* methods.&lt;/p&gt;

&lt;p&gt;Notice: Maybe this is not a bug and the check is performed somewhere else just before generation of source code from these objects.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22755">YANGTOOLS-335</key>
            <summary>Potentional bug: AbstractGeneratedTypeBuilder allows multiple addition of elements witch equals</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="pkajsa">Peter Kajsa</assignee>
                                    <reporter username="pkajsa">Peter Kajsa</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Oct 2014 11:16:20 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:21 +0000</updated>
                            <resolved>Mon, 20 Oct 2014 09:14:46 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="43105" author="pkajsa" created="Fri, 17 Oct 2014 09:13:09 +0000"  >&lt;p&gt;patch set: &lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/12042/1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/12042/1&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>2172</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=2172]]></customfieldvalue>

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

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

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