<!-- 
RSS generated by JIRA (4.4#649-r158309) at Fri May 24 23:30: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/CLJ-924/CLJ-924.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-924] Error reporting of invalid digit in unicode character literal</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-924</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;I ran across the following code when reading unicode character literals in readUnicodeChar(String token, int offset, int length, int base)&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; 
int d = Character.digit(token.charAt(i), base);
if(d == -1)
    throw new IllegalArgumentException(&quot;Invalid digit: &quot; + (char) d);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 


&lt;p&gt;Casting -1 to a char doesn&apos;t seem to produce anything useful. I&apos;m guessing the appropriate code might look like&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; 
int d = Character.digit(token.charAt(i), base);
if(d == -1)
    throw new IllegalArgumentException(&quot;Invalid digit: &quot; + token.charAt(i));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 


&lt;p&gt;For comparison, the code in the other readUnicodeCharacter used when reading strings handles this correctly with:&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;int d = Character.digit(ch, base);
if(d == -1)
    throw new IllegalArgumentException(&quot;Invalid digit: &quot; + (char) ch); 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="15200">CLJ-924</key>
            <summary>Error reporting of invalid digit in unicode character literal</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="4" iconUrl="http://dev.clojure.org/jira/images/icons/priority_minor.gif">Minor</priority>
                    <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="cosmin">Cosmin Stejerean</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 Feb 2012 01:06:22 -0600</created>
                <updated>Fri, 23 Mar 2012 08:40:35 -0500</updated>
                    <resolved>Fri, 23 Mar 2012 08:40:35 -0500</resolved>
                            <version>Release 1.2</version>
                <version>Release 1.3</version>
                                <fixVersion>Release 1.4</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="27670" author="cosmin" created="Sun, 5 Feb 2012 01:09:04 -0600"  >&lt;p&gt;Attached a patch with the minor code fix.&lt;/p&gt;</comment>
                    <comment id="27849" author="stuart.sierra" created="Fri, 24 Feb 2012 15:00:12 -0600"  >&lt;p&gt;Screened. I can&apos;t demonstrate this code being called by the reader, but it seems to be correct.&lt;/p&gt;</comment>
                    <comment id="27881" author="jafingerhut" created="Mon, 27 Feb 2012 22:08:13 -0600"  >&lt;p&gt;Sorry to disturb things after this has been screened, but clj-924-unicode-invalid-digit-patch2.txt has some added tests that cause the problem to occur, as well as one other similar one nearby in LispReader.java, which is also fixed, in addition to Cosmin&apos;s fix.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10890" name="CLJ-924-unicode-invalid-digit.patch" size="924" author="cosmin" created="Sun, 5 Feb 2012 01:09:04 -0600" />
                    <attachment id="10969" name="clj-924-unicode-invalid-digit-patch2.txt" size="6659" author="jafingerhut" created="Mon, 27 Feb 2012 22:08:13 -0600" />
                </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>
                                            <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                <customfieldname>Patch</customfieldname>
                <customfieldvalues>
                        <customfieldvalue key="10001">Code</customfieldvalue>

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