<!-- 
RSS generated by JIRA (8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d) at Wed Feb 07 20:52:57 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-345] Mapping service - xml to java object -throws Class cast when the Boolean object and enum</title>
                <link>https://jira.opendaylight.org/browse/YANGTOOLS-345</link>
                <project id="10188" key="YANGTOOLS">yangtools</project>
                    <description>&lt;p&gt;I use BindingIndependentMappingService&apos;s dataObjectFromDataDom method to convert a CompositeNode object into a Binding aware of the object, but encountered one problem:(i use of-conf yang model),&lt;/p&gt;

&lt;p&gt;Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.OFPortOtherFeatureListType$Medium at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.ofporttype.features.Advertised$Broker$Codec$DOM.fromDomStatic(Advertised$Broker$Codec$DOM.java) at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.ofporttype.Features$Broker$Codec$DOM.fromDomStatic(Features$Broker$Codec$DOM.java) at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.capable.switch.resources.Port$Broker$Codec$DOM.fromDomStatic(Port$Broker$Codec$DOM.java) at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.capable.switch.Resources$Broker$Codec$DOM.fromDomStatic(Resources$Broker$Codec$DOM.java) at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.CapableSwitch$Broker$Codec$DOM.fromDomStatic(CapableSwitch$Broker$Codec$DOM.java) at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.CapableSwitch$Broker$Codec$DOM.deserialize(CapableSwitch$Broker$Codec$DOM.java) at org.opendaylight.yangtools.sal.binding.generator.impl.LazyGeneratedCodecRegistry$DataContainerCodecImpl.deserialize(LazyGeneratedCodecRegistry.java:573) at org.opendaylight.yangtools.sal.binding.generator.impl.RuntimeGeneratedMappingServiceImpl.dataObjectFromDataDom(RuntimeGeneratedMappingServiceImpl.java:291)&lt;/p&gt;

&lt;p&gt;... 7 more&lt;/p&gt;

&lt;p&gt;I looked at dynamically generated code, find the following code?&lt;/p&gt;

&lt;p&gt;boolean hasNext = _iterator.hasNext(); while(hasNext) { isempty = false; Object listItem = _iterator.next(); if(listItem instanceof java.util.Map.Entry) &lt;/p&gt;
{ Object innerValue = ((java.util.Map.Entry) _listItem).getValue(); Object _value = (org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.OFPortOtherFeatureListType$Medium) _innerValue; getMedium.add(value); }
&lt;p&gt; _hasNext = _iterator.hasNext(); } }&lt;/p&gt;

&lt;p&gt;and Boolean Object&lt;/p&gt;

&lt;p&gt;Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Boolean&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.ofporttype.Configuration$Broker$Codec$DOM.fromDomStatic(Configuration$Broker$Codec$DOM.java)&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.capable._switch.resources.Port$Broker$Codec$DOM.fromDomStatic(Port$Broker$Codec$DOM.java)&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.capable._switch.Resources$Broker$Codec$DOM.fromDomStatic(Resources$Broker$Codec$DOM.java)&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.CapableSwitch$Broker$Codec$DOM.fromDomStatic(CapableSwitch$Broker$Codec$DOM.java)&lt;br/&gt;
	at org.opendaylight.yang.gen.v1.urn.onf.of111.config.yang.rev111207.CapableSwitch$Broker$Codec$DOM.deserialize(CapableSwitch$Broker$Codec$DOM.java)&lt;/p&gt;


&lt;p&gt;Can anyone tell me how to do? Thanks for help.&lt;/p&gt;</description>
                <environment>&lt;p&gt;Operating System: All&lt;br/&gt;
Platform: All&lt;/p&gt;</environment>
        <key id="22765">YANGTOOLS-345</key>
            <summary>Mapping service - xml to java object -throws Class cast when the Boolean object and enum</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="10001">Won&apos;t Do</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="hur1981830@gmail.com">rui.hu</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Oct 2014 09:19:19 +0000</created>
                <updated>Sun, 10 Apr 2022 18:35:22 +0000</updated>
                            <resolved>Wed, 18 Mar 2015 12:45:47 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="43122" author="hur1981830@gmail.com" created="Wed, 22 Oct 2014 09:20:46 +0000"  >&lt;p&gt;yang tools version is 0.7.0-SNAPSHOT&lt;/p&gt;</comment>
                            <comment id="43123" author="jhajnar@cisco.com" created="Thu, 13 Nov 2014 14:20:01 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Could you please provide a yang module or paste parts of that module which cause reported errors? &lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Jan.&lt;/p&gt;</comment>
                            <comment id="43126" author="hur1981830@gmail.com" created="Mon, 1 Dec 2014 02:15:26 +0000"  >&lt;p&gt;Attachment of-config.yang has been added with description: of-conf yang model&lt;/p&gt;</comment>
                            <comment id="43127" author="hur1981830@gmail.com" created="Mon, 1 Dec 2014 02:25:34 +0000"  >&lt;p&gt;Attachment xml fragment.xml has been added with description: parse xml content&lt;/p&gt;</comment>
                            <comment id="43124" author="jhajnar@cisco.com" created="Wed, 17 Dec 2014 09:54:10 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Thanks for the test files. The bug is happening for me and is still present in latest stable helium branch. Problem seems to be in TransformerGenerator class. Giving back to pool as I will not be able to fix this now.&lt;/p&gt;</comment>
                            <comment id="43125" author="tony.tkacik@gmail.com" created="Wed, 18 Mar 2015 12:45:47 +0000"  >&lt;p&gt;Service is deprecated and to be removed in Lithium, please use binding-data-codec,&lt;br/&gt;
which does not expose this bug.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="13003" name="of-config.yang" size="78832" author="hur1981830@gmail.com" created="Mon, 1 Dec 2014 02:15:26 +0000"/>
                            <attachment id="13004" name="xml fragment.xml" size="11012" author="hur1981830@gmail.com" created="Mon, 1 Dec 2014 02:25:34 +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>2238</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=2238]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10206" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Issue Type</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10300"><![CDATA[Bug]]></customfieldvalue>

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

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

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