<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sat May 18 15:58:35 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/TLOG-4/TLOG-4.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>[TLOG-4] Provided implementations of logging protocols fail.</title>
                <link>http://dev.clojure.org/jira/browse/TLOG-4</link>
                <project id="10030" key="TLOG">tools.logging</project>
                        <description>&lt;p&gt;Example of error when trying to call a Logger protocol function:&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;java.lang.IllegalArgumentException: No implementation of method: :enabled? of protocol:
#&apos;clojure.tools.logging.impl/Logger found for class: org.apache.log4j.Logger
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The bug is the result of combining syntax-quoting with &lt;tt&gt;extend-type&lt;/tt&gt;, e.g.:&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;`(do
   (extend-type org.apache.commons.logging.Log
     Logger
     (enabled? [logger# level#] ... )))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The syntax-quote turns the above &lt;tt&gt;enabled?&lt;/tt&gt; into &lt;tt&gt;clojure.tools.logging/enabled?&lt;/tt&gt; protocol function name, and then the &lt;tt&gt;extend-type&lt;/tt&gt; turns that into the keyword &lt;tt&gt;:clojure.tools.logging/enabled?&lt;/tt&gt;, which does not match the expected &lt;tt&gt;:enabled?&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Attached patch fixes this by using &lt;tt&gt;extend&lt;/tt&gt; maps rather than &lt;tt&gt;extend-type&lt;/tt&gt;. Also adds some tests.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14652">TLOG-4</key>
            <summary>Provided implementations of logging protocols fail.</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="1" iconUrl="http://dev.clojure.org/jira/images/icons/priority_blocker.gif">Blocker</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="ataggart">Alexander Taggart</assignee>
                                <reporter username="ataggart">Alexander Taggart</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Sep 2011 14:58:12 -0500</created>
                <updated>Thu, 29 Sep 2011 15:36:11 -0500</updated>
                    <resolved>Thu, 29 Sep 2011 15:36:11 -0500</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="26877" author="ataggart" created="Thu, 29 Sep 2011 15:36:11 -0500"  >&lt;p&gt;Committed:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/clojure/tools.logging/commit/f9cb0a7232d3a11cb7e74e4c13c3adc054e7e7a2&quot;&gt;https://github.com/clojure/tools.logging/commit/f9cb0a7232d3a11cb7e74e4c13c3adc054e7e7a2&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10374" name="fix-broken-extend.patch" size="10479" author="ataggart" created="Thu, 29 Sep 2011 14:58:12 -0500" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <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="10002">Code and Test</customfieldvalue>

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