<!-- 
RSS generated by JIRA (4.4#649-r158309) at Thu Jun 20 01:23:45 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/CLJ-286/CLJ-286.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>[CLJ-286] *out* being used as java.io.PrintWriter</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-286</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;There seem to be several places in clojure/contrib where &lt;b&gt;out&lt;/b&gt; is being used as a java.io.PrintWriter, despite being documented as of type java.io.Writer&lt;br/&gt;
Examples are: &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The reflection warnings from the compiler&lt;/li&gt;
	&lt;li&gt;Exception printouts from contrib.sql&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This causes very confusing errors, when &lt;b&gt;out&lt;/b&gt; isn&apos;t actually a PrintWriter, for example in a swank repl where it is a StringWriter.&lt;/p&gt;

&lt;p&gt;I&apos;ve created a patch for the reflection warnings, but can&apos;t submit it here because of political issues.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13683">CLJ-286</key>
            <summary>*out* being used as java.io.PrintWriter</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                        <status id="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="-1">Unassigned</assignee>
                                <reporter username="-1">None</reporter>
                        <labels>
                    </labels>
                <created>Mon, 29 Mar 2010 16:37:00 -0500</created>
                <updated>Thu, 14 Oct 2010 14:27:00 -0500</updated>
                    <resolved>Thu, 14 Oct 2010 14:27:00 -0500</resolved>
                                            <fixVersion>Release 1.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="23589" author="importer" created="Thu, 14 Oct 2010 14:27:00 -0500"  >&lt;p&gt;Converted from &lt;a href=&quot;http://www.assembla.com/spaces/clojure/tickets/286&quot;&gt;http://www.assembla.com/spaces/clojure/tickets/286&lt;/a&gt;&lt;br/&gt;
Attachments:&lt;br/&gt;
0001-fix-clojure.main-to-not-assume-that-err-is-a-PrintWr.patch - &lt;a href=&quot;https://www.assembla.com/spaces/clojure/documents/cEQbXEuiar367beJe5d-aX/download/cEQbXEuiar367beJe5d-aX&quot;&gt;https://www.assembla.com/spaces/clojure/documents/cEQbXEuiar367beJe5d-aX/download/cEQbXEuiar367beJe5d-aX&lt;/a&gt;&lt;br/&gt;
0286-out-writer-and-better-pst.patch - &lt;a href=&quot;https://www.assembla.com/spaces/clojure/documents/b4nAPA16Gr34ZzeJe5cbLA/download/b4nAPA16Gr34ZzeJe5cbLA&quot;&gt;https://www.assembla.com/spaces/clojure/documents/b4nAPA16Gr34ZzeJe5cbLA/download/b4nAPA16Gr34ZzeJe5cbLA&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="23590" author="importer" created="Thu, 14 Oct 2010 14:27:00 -0500"  >&lt;p&gt;rnewman said: See&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://www.assembla.com/spaces/clojure-contrib/tickets/55-clojure-contrib-sql-expects-*err*-to-be-a-printwriter&quot;&gt;https://www.assembla.com/spaces/clojure-contrib/tickets/55-clojure-contrib-sql-expects-*err*-to-be-a-printwriter&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;and the associated discussion on the group.&lt;/p&gt;


&lt;p&gt;Clojure&apos;s &lt;b&gt;out&lt;/b&gt; is actually intended to be a PrintWriter; it&apos;s a documentation issue.&lt;/p&gt;</comment>
                    <comment id="23591" author="importer" created="Thu, 14 Oct 2010 14:27:00 -0500"  >&lt;p&gt;djpowell said: [&lt;a href=&quot;file:cEQbXEuiar367beJe5d-aX&quot;&gt;file:cEQbXEuiar367beJe5d-aX&lt;/a&gt;]: Fix for related printwriter issue&lt;/p&gt;</comment>
                    <comment id="23592" author="importer" created="Thu, 14 Oct 2010 14:27:00 -0500"  >&lt;p&gt;djpowell said: There was also some discussion that &lt;b&gt;out&lt;/b&gt; should not be assumed to be a PrintWriter:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://groups.google.co.uk/group/clojure-dev/browse_thread/thread/99aa2b3263a0b374?hl=en&quot;&gt;http://groups.google.co.uk/group/clojure-dev/browse_thread/thread/99aa2b3263a0b374?hl=en&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ve attached a patch for the related issue of &lt;b&gt;err&lt;/b&gt; being assumed to be a PrintWriter.  I think this is the only place in clojure itself, although there are other places in contrib.&lt;/p&gt;</comment>
                    <comment id="23593" author="importer" created="Thu, 14 Oct 2010 14:27:00 -0500"  >&lt;p&gt;stu said: [&lt;a href=&quot;file:b4nAPA16Gr34ZzeJe5cbLA&quot;&gt;file:b4nAPA16Gr34ZzeJe5cbLA&lt;/a&gt;]&lt;/p&gt;</comment>
                    <comment id="23594" author="importer" created="Thu, 14 Oct 2010 14:27:00 -0500"  >&lt;p&gt;stu said: Second patch subsumes first, plus two additions&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;applies the same fix to the new pst function&lt;/li&gt;
	&lt;li&gt;improves usability of pst. pst&apos;s defaulting for the single-arity case was the opposite of what I expected, and the resulting error message is spectacularly confusing. Since the defaulting could trivially be extended to meet my expectations (pass an exception) without breaking the existing (pass a depth), I made it support both.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I don&apos;t like binding &lt;b&gt;out&lt;/b&gt; to &lt;b&gt;err&lt;/b&gt;, but the entire print plumbing drives you in this direction.&lt;/p&gt;</comment>
                    <comment id="23595" author="importer" created="Thu, 14 Oct 2010 14:27:00 -0500"  >&lt;p&gt;stu said: Updating tickets (#182, #286)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                <customfield id="customfield_10002" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Approval</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10007">Ok</customfieldvalue>

                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>