<!-- 
RSS generated by JIRA (4.4#649-r158309) at Sun May 19 22:44:38 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-693/CLJ-693.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-693] VerifyError with symbol metadata, macros, and defrecord</title>
                <link>http://dev.clojure.org/jira/browse/CLJ-693</link>
                <project id="10010" key="CLJ">Clojure</project>
                        <description>&lt;p&gt;The code below defines a macro wrapper around defrecord. Using it causes a VerifyError:&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;(defmacro mac1 [name properties] 
  (let [key-info (keyword (first (filter #(meta %) properties)))] 
    (prn key-info) 
    `(defrecord ~name ~properties))) 

(mac1 One [^:key one, two])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Once this happens, the running Clojure process is oddly damaged. Changing the macro to a working version (see below) will not make the sample work with the tagged symbol, almost as if the symbol &lt;br/&gt;
&apos;one (below) became corrupt. You either need to start a new REPL, or try to invoke the macro with a different tagged symbol.&lt;/p&gt;

&lt;p&gt;The following code does work (note the forced conversion to a string):&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;(defmacro mac2 [name properties] 
  (let [key-info (keyword (str (first (filter #(meta %) properties))))] 
    (prn key-info) 
    `(defrecord ~name ~properties))) 

(mac2 Two [^:key three, four])
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Affects Clojure from 1.2.0 to 1.3.0-alpha4</environment>
            <key id="14302">CLJ-693</key>
            <summary>VerifyError with symbol metadata, macros, and defrecord</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="6" iconUrl="http://dev.clojure.org/jira/images/icons/status_closed.gif">Closed</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="richhickey">Rich Hickey</assignee>
                                <reporter username="vetoshev">Constantine Vetoshev</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Dec 2010 08:54:46 -0600</created>
                <updated>Fri, 1 Mar 2013 12:47:01 -0600</updated>
                    <resolved>Fri, 17 Dec 2010 16:19:45 -0600</resolved>
                            <version>Approved Backlog</version>
                <version>Backlog</version>
                <version>Release 1.2</version>
                <version>Release 1.3</version>
                                <fixVersion>Release 1.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="26039" author="richhickey" created="Fri, 17 Dec 2010 08:47:25 -0600"  >&lt;p&gt;Stu, can you please verify?&lt;/p&gt;</comment>
                    <comment id="26043" author="stu" created="Fri, 17 Dec 2010 13:53:27 -0600"  >&lt;p&gt;Very confusing. Reproduced everything in the report. Moreover, leaving out the call to &lt;tt&gt;keyword&lt;/tt&gt; is enough to avoid the problem. The following variant works fine:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;(defmacro mac4 [name properties] 
  (let [key-info (first (filter #(meta %) properties))] 
    (prn key-info) 
    `(defrecord ~name ~properties)))&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="26057" author="vetoshev" created="Sat, 18 Dec 2010 13:02:26 -0600"  >&lt;p&gt;Thanks for the fix! Works great.&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>