<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:33 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-200] code generator should not generate this.value = null</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-200</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress&lt;/p&gt;

&lt;p&gt;public IpAddress(Ipv4Address _ipv4Address) &lt;/p&gt;
{
        super();
        this._ipv4Address = _ipv4Address;
        this._ipv6Address = null;
        this._value = null;
    }

&lt;p&gt;This constructor is possibly wrong because it returns null on getValue(). If the instance is created using this constructor it cannot be sent over JMX.&lt;/p&gt;

&lt;p&gt;Consider this example:&lt;br/&gt;
client.setAddress(new IpAddress(new Ipv4Address(&quot;127.0.0.1&quot;)));&lt;br/&gt;
will fail&lt;br/&gt;
client.setAddress(new IpAddress(&quot;127.0.0.1&quot;.toCharArray()));&lt;br/&gt;
will succeed (value != null)&lt;/p&gt;


&lt;p&gt;Proposed fix: _value should be filled using _ipv4Address.getValue()&lt;/p&gt;

&lt;p&gt;Detail:&lt;/p&gt;

&lt;p&gt;The failure looks like this:&lt;br/&gt;
Caused by: java.io.InvalidObjectException: Exception constructing org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress&lt;br/&gt;
	at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory.invalidObjectException(DefaultMXBeanMappingFactory.java:1415)&lt;br/&gt;
	at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaConstructor.fromCompositeData(DefaultMXBeanMappingFactory.java:1335)&lt;br/&gt;
	at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeMapping.fromNonNullOpenValue(DefaultMXBeanMappingFactory.java:918)&lt;br/&gt;
	at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$NonNullMXBeanMapping.fromOpenValue(DefaultMXBeanMappingFactory.java:132)&lt;br/&gt;
	at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaSetters.fromCompositeData(DefaultMXBeanMappingFactory.java:1119)&lt;br/&gt;
	... 48 more&lt;br/&gt;
Caused by: java.lang.reflect.InvocationTargetException&lt;br/&gt;
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;br/&gt;
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)&lt;br/&gt;
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;br/&gt;
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)&lt;br/&gt;
	at com.sun.jmx.mbeanserver.DefaultMXBeanMappingFactory$CompositeBuilderViaConstructor.fromCompositeData(DefaultMXBeanMappingFactory.java:1331)&lt;br/&gt;
	... 51 more&lt;br/&gt;
Caused by: java.lang.NullPointerException&lt;br/&gt;
	at java.lang.String.&amp;lt;init&amp;gt;(String.java:168)&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev100924.IpAddress.&amp;lt;init&amp;gt;(IpAddress.java:38)&lt;br/&gt;
	... 56 more&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22620">YANGTOOLS-200</key>
            <summary>code generator should not generate this.value = null</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="mvitez@cisco.com">Martin Vitez</assignee>
                                    <reporter username="tolvecky@cisco.com">Tomas Olvecky</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Jul 2014 09:01:39 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:09 +0000</updated>
                            <resolved>Mon, 21 Jul 2014 08:15:34 +0000</resolved>
                                                                        <due>Fri, 18 Jul 2014 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="42828" author="mmarsale@cisco.com" created="Fri, 4 Jul 2014 12:30:18 +0000"  >&lt;p&gt;In addition, value field is compared in equals method. Equal result depends on which constructor was used for union type. Basic constructors set value to null and Artificial constructor sets the value to input value.&lt;/p&gt;</comment>
                            <comment id="42829" author="tolvecky@cisco.com" created="Mon, 7 Jul 2014 12:00:00 +0000"  >&lt;p&gt;this is a bug in code generator (not enhancement) that forces programmers to use workarounds and document them in their code base, see bgpcep, e.g.&lt;br/&gt;
&lt;a href=&quot;https://github.com/opendaylight/bgpcep/blob/master/bgp/rib-impl-config/src/test/java/org/opendaylight/controller/config/yang/bgp/rib/impl/BGPPeerModuleTest.java#L148&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/opendaylight/bgpcep/blob/master/bgp/rib-impl-config/src/test/java/org/opendaylight/controller/config/yang/bgp/rib/impl/BGPPeerModuleTest.java#L148&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="42830" author="mvitez@cisco.com" created="Tue, 15 Jul 2014 07:29:35 +0000"  >&lt;p&gt;Proposed patch:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://git.opendaylight.org/gerrit/#/c/9006/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://git.opendaylight.org/gerrit/#/c/9006/&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>1276</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=1276]]></customfieldvalue>

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

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

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