<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:10: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-664] Binding codegen generates invalid enforcer for String/length</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-664</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;The following model&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 {
 &#160;namespace foo;
 &#160;prefix foo;

 &#160;list string {
 &#160;&#160;&#160;leaf name {
 &#160;&#160;&#160;&#160;&#160;type string {
 &#160;&#160;&#160;&#160;&#160;&#160;&#160;length 1..32;
 &#160;&#160;&#160;&#160;&#160;}
 &#160;&#160;&#160;}
 &#160;}
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;generates code which does not compile because:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
[target/test/src/mdsalXXX/org/opendaylight/yang/gen/v1/foo/norev/StringBuilder.java:99: error: cannot find symbol
        &lt;span class=&quot;code-keyword&quot;&gt;final&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; length = value.codePointCount(0, value.length());
                                                        ^
  symbol:   method length()
  location: variable value of type org.opendaylight.yang.gen.v1.foo.norev.&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;, target/test/src/mdsalXXX/org/opendaylight/yang/gen/v1/foo/norev/StringBuilder.java:108: error: incompatible types: java.lang.&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; cannot be converted to org.opendaylight.yang.gen.v1.foo.norev.&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
            check_nameLength(value);
                             ^, Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output]
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="34059">MDSAL-664</key>
            <summary>Binding codegen generates invalid enforcer for String/length</summary>
                <type id="10104" iconUrl="https://jira.opendaylight.org/secure/viewavatar?size=xsmall&amp;avatarId=10303&amp;avatarType=issuetype">Bug</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>
                            <label>pt</label>
                    </labels>
                <created>Mon, 24 May 2021 19:53:01 +0000</created>
                <updated>Mon, 31 May 2021 18:24:00 +0000</updated>
                            <resolved>Mon, 24 May 2021 21:14:47 +0000</resolved>
                                                    <fixVersion>8.0.0</fixVersion>
                    <fixVersion>7.0.8</fixVersion>
                    <fixVersion>6.0.11</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="69240" author="rovarga" created="Mon, 31 May 2021 18:24:00 +0000"  >&lt;p&gt;This is caused by a hard-coded unqualified reference to java.lang.String, which is being shadowed by the context &#8211; &apos;String&apos; ends up referring to the generated foo.norev.String &#8211; and hence we get incompatible type references and a reference to non-existing foo.norev.String.length() method.&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_10000" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0|i03y5z:</customfieldvalue>

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