<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed Jun 19 09:57:26 UTC 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://www.doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DCOM+AND+fixVersion+%3D+%222.0.2%22&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DCOM+AND+fixVersion+%3D+%222.0.2%22</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="4" total="4"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DCOM-41] Make annotation parser a bit cleverer</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-41</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;From an initial look that I had at the annotation parser, it simply search for anything starting with an &quot;@&quot; somewhere in the doc comment and assumes that it is an annotation. Now, if someone uses the @ somewhere in his doc comment but not as an annotation, the parser breaks.&lt;/p&gt;

&lt;p&gt;An example for this can be found in the Doctrine code base, the following comment will result in a parse error:&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;    /**
     * Annotation     ::= &lt;span class=&quot;code-quote&quot;&gt;&quot;@&quot;&lt;/span&gt; AnnotationName [&lt;span class=&quot;code-quote&quot;&gt;&quot;(&quot;&lt;/span&gt; [Values] &lt;span class=&quot;code-quote&quot;&gt;&quot;)&quot;&lt;/span&gt;]
     * AnnotationName ::= QualifiedName | SimpleName | AliasedName
     * QualifiedName  ::= NameSpacePart &lt;span class=&quot;code-quote&quot;&gt;&quot;\&quot;&lt;/span&gt; {NameSpacePart &lt;span class=&quot;code-quote&quot;&gt;&quot;\&quot;&lt;/span&gt;}* SimpleName
     * AliasedName    ::= Alias &lt;span class=&quot;code-quote&quot;&gt;&quot;:&quot;&lt;/span&gt; SimpleName
     * NameSpacePart  ::= identifier
     * SimpleName     ::= identifier
     * Alias          ::= identifier
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; mixed False &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; it is not a valid annotation.
     */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Obviously the first @ is not used to refer to an annotation here. I think it makes sense to allow new annotations only to start at a new line, what do you think?&lt;/p&gt;</description>
                <environment></environment>
            <key id="12463">DCOM-41</key>
            <summary>Make annotation parser a bit cleverer</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="johannes">Johannes Schmitt</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Mar 2011 08:50:47 +0000</created>
                <updated>Thu, 7 Apr 2011 14:22:01 +0000</updated>
                    <resolved>Thu, 7 Apr 2011 14:22:01 +0000</resolved>
                                            <fixVersion>2.0.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15476" author="johannes" created="Wed, 9 Mar 2011 09:29:52 +0000"  >&lt;p&gt;The pull request is here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/9&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/9&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15477" author="beberlei" created="Wed, 9 Mar 2011 09:47:51 +0000"  >&lt;p&gt;Does this still work with nested annotations?&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;/**
 * @annot({@annot2})
 */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="15478" author="johannes" created="Wed, 9 Mar 2011 09:51:47 +0000"  >&lt;p&gt;Sure, my patch only changes the way how the first @ is found.&lt;/p&gt;</comment>
                    <comment id="15480" author="romanb" created="Wed, 9 Mar 2011 15:09:24 +0000"  >&lt;p&gt;First of all, thanks for the patch. I&apos;m just not sure whether the added complexity (nontrivial regexp vs substr/strpos)  and performance penalty (to be tested) can justify fixing these such edge-cases where an @ appears in the comment block that is not one of the already stripped inline docblocks. Just my two cents, I think this needs further investigation and more extensive testing.&lt;/p&gt;

&lt;p&gt;Edit: Since the regex is &quot;only&quot; applied once per parsed docblock the perf. difference might be negligible but should be tested anyway. Remains the verification of the correctness of the regex, given more extensive testing and test-cases.&lt;/p&gt;</comment>
                    <comment id="15481" author="johannes" created="Wed, 9 Mar 2011 15:30:34 +0000"  >&lt;p&gt;I think performance should not be an issue since this data is cached anyway. &lt;/p&gt;

&lt;p&gt;As for the necessity of this, it&apos;s a pain if you parse third party files and they use @ somewhere which then breaks the parser. Since Symfony2 is heavily relying on the annotation parser not only for Doctrine metadata, but for annotation metadata in general, imo this needs to be fixed. I&apos;m not 100% happy with my solution since it covers not all, but only the most likely cases. Ideally, the lexer would have a better way to detect if an @ is used to mark the beginning of an annotation, and simply ignore the @ if it does not. I&apos;m not familar with the lexer code, but you probably have a better understand of how it works and whether this would make sense.&lt;/p&gt;

&lt;p&gt;EDIT: I&apos;ve made an alternative implementation which you can find here: &lt;a href=&quot;https://github.com/schmittjoh/common/commit/123315e21aff6d7bce7cb77ab798660d0e68b139&quot; class=&quot;external-link&quot;&gt;https://github.com/schmittjoh/common/commit/123315e21aff6d7bce7cb77ab798660d0e68b139&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15690" author="beberlei" created="Tue, 5 Apr 2011 14:53:51 +0000"  >&lt;p&gt;Fixed formatting of code block&lt;/p&gt;</comment>
                    <comment id="15710" author="beberlei" created="Thu, 7 Apr 2011 14:22:01 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-38] Annotation parser plain value types</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-38</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I posted this question in doctrine user group(&lt;a href=&quot;https://groups.google.com/forum/?fromgroups#!topic/doctrine-user/QhAz-Yr70T0&quot; class=&quot;external-link&quot;&gt;https://groups.google.com/forum/?fromgroups#!topic/doctrine-user/QhAz-Yr70T0&lt;/a&gt;), but with no response, so I&apos;d like to open it up here as the solution is trivial and would save me either a lot of sub-classing or prevent me from changing the doctrine library files.&lt;/p&gt;

&lt;p&gt;This annotation&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;class SomeGrid {
    /**
     *  @GRID:Column(header=&lt;span class=&quot;code-quote&quot;&gt;&quot;Reg. plate&quot;&lt;/span&gt;, width=80, editable=TRUE, hidden=FALSE, tooltip=&lt;span class=&quot;code-quote&quot;&gt;&quot;Registration plate&quot;&lt;/span&gt;, align=&lt;span class=&quot;code-quote&quot;&gt;&quot;left&quot;&lt;/span&gt;, sortable=TRUE)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; $regPlate;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;produces the following object:&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;(object) Grid\Annotations\Column {
    &lt;span class=&quot;code-quote&quot;&gt;&quot;header&quot;&lt;/span&gt;   =&amp;gt; (string) &lt;span class=&quot;code-quote&quot;&gt;&quot;Reg. plate&quot;&lt;/span&gt;
    &lt;span class=&quot;code-quote&quot;&gt;&quot;width&quot;&lt;/span&gt;    =&amp;gt; (string) &lt;span class=&quot;code-quote&quot;&gt;&quot;80&quot;&lt;/span&gt;
    &lt;span class=&quot;code-quote&quot;&gt;&quot;editable&quot;&lt;/span&gt; =&amp;gt; (bool)   &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
    &lt;span class=&quot;code-quote&quot;&gt;&quot;hidden&quot;&lt;/span&gt;   =&amp;gt; (bool)   &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
    &lt;span class=&quot;code-quote&quot;&gt;&quot;tooltip&quot;&lt;/span&gt;  =&amp;gt; (string) &lt;span class=&quot;code-quote&quot;&gt;&quot;Registration plate&quot;&lt;/span&gt;
    &lt;span class=&quot;code-quote&quot;&gt;&quot;align&quot;&lt;/span&gt;    =&amp;gt; (string) &lt;span class=&quot;code-quote&quot;&gt;&quot;left&quot;&lt;/span&gt;
    &lt;span class=&quot;code-quote&quot;&gt;&quot;sortable&quot;&lt;/span&gt; =&amp;gt; (bool)   &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;You can see the value of the width property is string even I didn&apos;t use quotes in the annotation.&lt;br/&gt;
The same happens with float values, but true and false values become, correctly, bool.&lt;/p&gt;

&lt;p&gt;I found this happens because of the following fragment of code in \Doctrine\Common\Annotations\Parser and could be easily corrected by prefixing the value with the corresponding type cast (marked in red).&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;    &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; Lexer::T_STRING:
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;match(Lexer::T_STRING);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lexer-&amp;gt;token[&apos;value&apos;];
    &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; Lexer::T_INTEGER:
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;match(Lexer::T_INTEGER);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; (&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;)$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lexer-&amp;gt;token[&apos;value&apos;];
    &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; Lexer::T_FLOAT:
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;match(Lexer::T_FLOAT);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; (&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;)$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lexer-&amp;gt;token[&apos;value&apos;];
    &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; Lexer::T_TRUE:
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;match(Lexer::T_TRUE);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
    &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; Lexer::T_FALSE:
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;match(Lexer::T_FALSE);
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The point is, in our app, some of the values go directly to browser and are processed by JavaScript. Having those values as strings breaks all kinds of mathematical operations on the client or would require additional (unnecessary) string to int/float conversions.&lt;/p&gt;</description>
                <environment>any</environment>
            <key id="12424">DCOM-38</key>
            <summary>Annotation parser plain value types</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="cicovec">Martin Ivi&#269;i&#269;</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Feb 2011 09:42:28 +0000</created>
                <updated>Thu, 7 Apr 2011 15:37:15 +0000</updated>
                    <resolved>Thu, 7 Apr 2011 15:37:15 +0000</resolved>
                            <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                                <component>Annotations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15711" author="beberlei" created="Thu, 7 Apr 2011 15:37:15 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-35] Change AnnotationReader cache salt</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-35</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;Our current AnnotationReader::$_CACHE_SALT conflicts with Symfony2 Console.&lt;/p&gt;

&lt;p&gt;The solution is to change the CACHE_SALT from:&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;&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; $CACHE_SALT = &apos;@&amp;lt;Annot&amp;gt;&apos;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;To:&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;&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; $CACHE_SALT = &apos;@[Annot]&apos;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12344">DCOM-35</key>
            <summary>Change AnnotationReader cache salt</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 Feb 2011 18:01:47 +0000</created>
                <updated>Tue, 15 Feb 2011 22:08:10 +0000</updated>
                    <resolved>Tue, 15 Feb 2011 22:08:10 +0000</resolved>
                            <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                                <component>Annotations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15316" author="guilhermeblanco" created="Tue, 15 Feb 2011 22:08:10 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DCOM-34] calling setAutoloadAnnotationClasses on doctrine annotations reader causes fatal error</title>
                <link>http://www.doctrine-project.org/jira/browse/DCOM-34</link>
                <project id="10043" key="DCOM">Doctrine Common</project>
                        <description>&lt;p&gt;When I try to set setAutoloadAnnotationClasses(true) gives me a fatal error, call to undefined method&lt;/p&gt;

&lt;p&gt;PHP Fatal error:  Call to undefined method Doctrine\Common\Annotations\AnnotationReader::setAutoloadAnnotationClasses() &lt;/p&gt;</description>
                <environment>Snow leopard, intel </environment>
            <key id="12285">DCOM-34</key>
            <summary>calling setAutoloadAnnotationClasses on doctrine annotations reader causes fatal error</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hashinp">Hash Panak</reporter>
                        <labels>
                    </labels>
                <created>Sat, 8 Jan 2011 06:15:05 +0000</created>
                <updated>Tue, 15 Feb 2011 22:46:06 +0000</updated>
                    <resolved>Tue, 15 Feb 2011 22:46:06 +0000</resolved>
                            <version>2.0.0</version>
                                <fixVersion>2.0.2</fixVersion>
                                <component>Annotations</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15317" author="guilhermeblanco" created="Tue, 15 Feb 2011 22:13:16 +0000"  >&lt;p&gt;The correct method name is: setAutoloadAnnotations&lt;/p&gt;

&lt;p&gt;We need to fix the documentation of Common package.&lt;/p&gt;</comment>
                    <comment id="15318" author="guilhermeblanco" created="Tue, 15 Feb 2011 22:46:06 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>