<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:09:35 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-351] Subclassed type wrappers fail to check restrictions</title>
                <link>https://jira.opendaylight.org/browse/MDSAL-351</link>
                <project id="10137" key="MDSAL">mdsal</project>
                    <description>&lt;p&gt;Given:&lt;/p&gt;

&lt;p&gt;&#160;&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;
&#160; typedef ipv4-address {
&#160;&#160;&#160; type string {
&#160;&#160;&#160;&#160;&#160; pattern
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-quote&quot;&gt;&apos;(([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\.){3}&apos;&lt;/span&gt;
&#160;&#160;&#160;&#160;&#160; +&#160; &lt;span class=&quot;code-quote&quot;&gt;&apos;([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])&apos;&lt;/span&gt;
&#160;&#160;&#160;&#160;&#160; + &lt;span class=&quot;code-quote&quot;&gt;&apos;(%[\p{N}\p{L}]+)?&apos;&lt;/span&gt;;
&#160;&#160;&#160; }
  }

&#160; typedef ipv4-address-no-zone {
&#160;&#160;&#160; type inet:ipv4-address {
&#160;&#160;&#160;&#160;&#160; pattern &lt;span class=&quot;code-quote&quot;&gt;&apos;[0-9\.]*&apos;&lt;/span&gt;;
&#160;&#160;&#160; }
  }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;we end up with:&lt;/p&gt;

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

&lt;p&gt;&#160;&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;
&#160;&#160;&#160; @ConstructorProperties(&lt;span class=&quot;code-quote&quot;&gt;&quot;value&quot;&lt;/span&gt;)
&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; Ipv4AddressNoZone(&lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt; _value) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;(_value);
&#160;&#160; &#160;
&#160;&#160;&#160;&#160;&#160;&#160;&#160; Objects.requireNonNull(_value, &lt;span class=&quot;code-quote&quot;&gt;&quot;Supplied value may not be &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;&quot;&lt;/span&gt;);
&#160;&#160;&#160;&#160;&#160;&#160;&#160; CodeHelpers.checkPattern(_value, patterns, regexes);
&#160;&#160; &#160;
&#160;&#160;&#160; }
&#160;&#160; &#160;
&#160;&#160;&#160; /**
&#160;&#160;&#160;&#160; * Creates a copy from Source &lt;span class=&quot;code-object&quot;&gt;Object&lt;/span&gt;.
&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; * @param source Source object
&#160;&#160;&#160;&#160; */
&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; Ipv4AddressNoZone(Ipv4AddressNoZone source) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;(source);
&#160;&#160;&#160; }
&#160;&#160;&#160; /**
&#160;&#160;&#160;&#160; * Creates a &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; instance from Ipv4Address
&#160;&#160;&#160;&#160; *
&#160;&#160;&#160;&#160; * @param source Source object
&#160;&#160;&#160;&#160; */
&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; Ipv4AddressNoZone(Ipv4Address source) {
&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;span class=&quot;code-keyword&quot;&gt;super&lt;/span&gt;(source);
&#160;&#160;&#160; }

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;note how the final constructor fails to perform additional checks required to comply with the argument. This needs to be rectified.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="30144">MDSAL-351</key>
            <summary>Subclassed type wrappers fail to check restrictions</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>
                    </labels>
                <created>Mon, 18 Jun 2018 10:13:16 +0000</created>
                <updated>Wed, 27 Jun 2018 20:13:41 +0000</updated>
                            <resolved>Wed, 27 Jun 2018 20:13:41 +0000</resolved>
                                                    <fixVersion>Fluorine</fixVersion>
                                    <component>Binding codegen</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                        <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|i03fnj:</customfieldvalue>

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