<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:08:27 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-29] Incorrect use of format strings in generated code when backing type is an array</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-29</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;Yangtools will currently generate code like:&lt;/p&gt;

&lt;p&gt;throw new IllegalArgumentException(String.format(&quot;Invalid length: {}, expected: {}.&quot;, value, lengthConstraints));&lt;/p&gt;

&lt;p&gt;This is incorrect since {} is a slf4j-style format specifier when you want a format string.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: Linux&lt;br/&gt;
Platform: PC&lt;/p&gt;</environment>
        <key id="26851">MDSAL-29</key>
            <summary>Incorrect use of format strings in generated code when backing type is an array</summary>
                <type id="10100" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10310&amp;avatarType=issuetype">Improvement</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="10003">Cannot Reproduce</resolution>
                                        <assignee username="jakubtoth-0">Jakub Toth</assignee>
                                    <reporter username="readams">Rob Adams</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Jun 2014 18:34:35 +0000</created>
                <updated>Fri, 9 Mar 2018 18:00:03 +0000</updated>
                            <resolved>Fri, 13 Jan 2017 15:04:20 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="53963" author="readams@readams.net" created="Fri, 13 Jun 2014 00:45:12 +0000"  >&lt;p&gt;The attached patch fixes the format string bug, but when I apply, the unit tests fail because of an apparent different bug.&lt;/p&gt;

&lt;p&gt;Failed tests:   test(org.opendaylight.yangtools.sal.java.api.generator.test.TypedefCompilationTest): expected:&amp;lt;Invalid length: abcd[, expected: [&lt;span class=&quot;error&quot;&gt;&amp;#91;5&#8229;11&amp;#93;&lt;/span&gt;]].&amp;gt; but was:&amp;lt;Invalid length: abcd[e, expected: [&lt;span class=&quot;error&quot;&gt;&amp;#91;6&#8229;10&amp;#93;&lt;/span&gt;]].&amp;gt;&lt;/p&gt;</comment>
                            <comment id="53968" author="readams@readams.net" created="Fri, 13 Jun 2014 00:45:12 +0000"  >&lt;p&gt;Attachment 1193.patch has been added with description: Fixes format bug&lt;/p&gt;</comment>
                            <comment id="53964" author="readams@readams.net" created="Fri, 13 Jun 2014 00:54:45 +0000"  >&lt;p&gt;The failed test was not a real bug but a bug in the unit test that was masked by the previous format string bug.&lt;/p&gt;

&lt;p&gt;Fixed in:&lt;br/&gt;
&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/7965/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/7965/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="53965" author="dkutenicsova" created="Fri, 25 Jul 2014 20:30:46 +0000"  >&lt;p&gt;Reopening with low priority, as the format string does not return useful value, when the value is an array. Quoting findbugs warning: &lt;/p&gt;

&lt;p&gt;&apos;One of the arguments being formatted with a format string is an array. This will be formatted using a fairly useless format, such as [I@304282, which doesn&apos;t actually show the contents of the array. Consider wrapping the array using Arrays.asList(...) before handling it off to a formatted.&apos;&lt;/p&gt;</comment>
                            <comment id="53966" author="tony.tkacik@gmail.com" created="Thu, 13 Nov 2014 09:45:16 +0000"  >&lt;p&gt;Added as blocking issue for Topic: Decrease Technical Debt.&lt;/p&gt;</comment>
                            <comment id="53967" author="martin.ciglan" created="Thu, 12 Jan 2017 09:27:08 +0000"  >&lt;p&gt;fix needs cherry-pick to Boron&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10000">
                    <name>Blocks</name>
                                            <outwardlinks description="blocks">
                                        <issuelink>
            <issuekey id="26877">MDSAL-55</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="22781">YANGTOOLS-361</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="13789" name="1193.patch" size="4024" author="readams" created="Fri, 13 Jun 2014 00:45:12 +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_10208" key="com.atlassian.jira.plugin.system.customfieldtypes:textfield">
                        <customfieldname>External issue ID</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1193</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=1193]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10305"><![CDATA[Improvement]]></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_10202" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Priority</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10353"><![CDATA[Lowest]]></customfieldvalue>

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

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