<!-- 
RSS generated by JIRA (4.4#649-r158309) at Wed Jun 19 09:46:01 CDT 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://dev.clojure.org/jira/si/jira.issueviews:issue-xml/JMX-7/JMX-7.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[JMX-7] Extend Destract protocol on nil to handle Null references gracefully</title>
                <link>http://dev.clojure.org/jira/browse/JMX-7</link>
                <project id="10060" key="JMX">java.jmx</project>
                        <description>&lt;p&gt;JMX Attributes can have null references. Currently a Exception is thrown because the &quot;null-type&quot; is not handled via objects-&amp;gt;data:&lt;/p&gt;

&lt;p&gt;user&amp;gt; (jmx/mbean &quot;java.lang:type=GarbageCollector,name=PS MarkSweep&quot;)&lt;br/&gt;
{:LastGcInfo &lt;font color=&quot;red&quot;&gt; #&amp;lt;IllegalArgumentException java.lang.IllegalArgumentException: No implementation of method: :objects-&amp;gt;data of protocol: #&apos;clojure.java.jmx/Destract found for class: nil&amp;gt;, &lt;/font&gt;  :CollectionCount 0, :CollectionTime 0, :MemoryPoolNames #&amp;lt;String[] [Ljava.lang.String;@57b8fe29&amp;gt;, :Name &quot;PS MarkSweep&quot;, :Valid true, :ObjectName #&amp;lt;ObjectName java.lang:type=GarbageCollector,name=PS MarkSweep&amp;gt;}&lt;/p&gt;

&lt;p&gt;After applying this patch:&lt;/p&gt;

&lt;p&gt;user&amp;gt; (jmx/mbean  &quot;java.lang:type=GarbageCollector,name=PS MarkSweep&quot;)&lt;br/&gt;
{:LastGcInfo nil, :CollectionCount 0, :CollectionTime 0, :MemoryPoolNames #&amp;lt;String[] [Ljava.lang.String;@2225be1e&amp;gt;, :Name &quot;PS MarkSweep&quot;, :Valid true, :ObjectName #&amp;lt;ObjectName java.lang:type=GarbageCollector,name=PS MarkSweep&amp;gt;}&lt;/p&gt;</description>
                <environment></environment>
            <key id="15643">JMX-7</key>
            <summary>Extend Destract protocol on nil to handle Null references gracefully</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="juergenhoetzel">J&#252;rgen H&#246;tzel</reporter>
                        <labels>
                        <label>bug</label>
                    </labels>
                <created>Thu, 23 Aug 2012 12:24:32 -0500</created>
                <updated>Tue, 18 Sep 2012 23:20:50 -0500</updated>
                    <resolved>Tue, 18 Sep 2012 23:20:50 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="29334" author="nickmbailey" created="Fri, 31 Aug 2012 16:42:30 -0500"  >&lt;p&gt;I don&apos;t suppose you know of a standard mbean that ships with most jvms we could use to write a test case for this?&lt;/p&gt;</comment>
                    <comment id="29417" author="juergenhoetzel" created="Mon, 10 Sep 2012 09:21:59 -0500"  >&lt;p&gt;I don&apos;t know of a standard MBean attribute which is reproducible Null. &quot;LastGcInfo&quot; of &quot;java.lang:type=GarbageCollector,name=PS MarkSweep&quot; is non-Null after a garbage collection.&lt;/p&gt;

&lt;p&gt;I think its better to test the Destract protocol directly instead of using a &quot;live&quot; MBean in this case.&lt;/p&gt;

&lt;p&gt;BTW. there was also a duplicate definition of the existing Destract tests in test-objects-&amp;gt;data.  Patches enclosed.&lt;/p&gt;</comment>
                    <comment id="29496" author="nickmbailey" created="Tue, 18 Sep 2012 23:20:50 -0500"  >&lt;p&gt;Committed:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/clojure/java.jmx/commit/31b58b9c78baa9f6f31a51cd6e8b8b729af4622a&quot;&gt;https://github.com/clojure/java.jmx/commit/31b58b9c78baa9f6f31a51cd6e8b8b729af4622a&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11489" name="0001-fix-duplicate-definition-of-test-objects-data.patch" size="1864" author="juergenhoetzel" created="Mon, 10 Sep 2012 09:22:53 -0500" />
                    <attachment id="11490" name="0002-Test-Destract-protocol-on-nil-refs-JMX-7.patch" size="963" author="juergenhoetzel" created="Mon, 10 Sep 2012 09:22:53 -0500" />
                    <attachment id="11491" name="0003-Extend-Destract-protocol-on-nil-to-handle-null-refer.patch" size="866" author="juergenhoetzel" created="Mon, 10 Sep 2012 09:22:53 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Approval</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10005">Accepted</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10009">Fixed</customfieldvalue>

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