<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=matsev" rel="nofollow">Mattias Severson</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9832?redirect=false" rel="nofollow">SPR-9832</a></strong> and commented</p>
<p dir="auto">The RestTemplate erroneously infers "0" for an empty string values.</p>
<ol dir="auto">
<li>Execute the attached test RestTemplateTest using the attached pom.xml file.</li>
<li>The test fails, the response from the RestTemplate is {"lhs":"1 U.S. dollar","rhs":"1 U.S. dollar","error":"0","icc":true}</li>
</ol>
<p dir="auto">For comparison, change the spring version to any 3.0.x version, or perform a request to <a href="http://www.google.com/ig/calculator?q=1USD=?EUR" rel="nofollow">http://www.google.com/ig/calculator?q=1USD=?EUR</a> from a browser. The response is {lhs: "1 U.S. dollar",rhs: "0.774833411 Euros",error: "",icc: true}</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1 RC1, 3.1.2</p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/20524/pom.xml" rel="nofollow">pom.xml</a> (<em>2.74 kB</em>)</li>
<li><a href="https://jira.spring.io/secure/attachment/20525/RestTemplateTest.java" rel="nofollow">RestTemplateTest.java</a> (<em>1.02 kB</em>)</li>
</ul>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154674" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14603" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14603/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14603">#14603</a> UriComponentsBuilder incorrectly disallows "=" as query parameter value (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398153232" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14424" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14424/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14424">#14424</a> RestTemplate fails to correctly parse some HTTP URI parameters (<em><strong>"is duplicated by"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398150979" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14109" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14109/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14109">#14109</a> UriComponentsBuilder.query(String) does not always match properly the query (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto"><strong>Referenced from:</strong> commits <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/0721146b14e3df3bde3e6e8f2a871bb0b995ef4f/hovercard" href="https://github.com/spring-projects/spring-framework/commit/0721146b14e3df3bde3e6e8f2a871bb0b995ef4f"><tt>0721146</tt></a>, <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/spring-projects/spring-framework/commit/88906d271bc25105d303c4de839aac5422617ab1/hovercard" href="https://github.com/spring-projects/spring-framework/commit/88906d271bc25105d303c4de839aac5422617ab1"><tt>88906d2</tt></a></p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=cbeams" rel="nofollow">Chris Beams</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9669?redirect=false" rel="nofollow">SPR-9669</a></strong> and commented</p>
<p dir="auto">ASM 4.0 was released in Oct 2011 to address Java 7 bytecode compatibility, particularly with regard to invokedynamic <a href="http://mail.ow2.org/wws/arc/asm/2011-10/msg00025.html" rel="nofollow">1</a>.</p>
<p dir="auto">Certain public API changes were made in the process.  Upgrade Spring's own internal repackaging of ASM to ensure users don't run into problems with Java 7 classes.  This is most likely to cause problems in conjunction with Spring's component-scanning functionality, so this is high priority.</p>
<p dir="auto">The repackaged <code class="notranslate">org.springframework.asm</code> classes are currently based on ASM 2.2.3, which is now several generations behind.  Here are the differences between APIs across those generations:</p>
<p dir="auto"><code class="notranslate">2.2.3-&gt; 3.2</code>: <a href="http://asm.ow2.org/jdiff223to32/changes.html" rel="nofollow">http://asm.ow2.org/jdiff223to32/changes.html</a><br>
<code class="notranslate">3.2  -&gt; 3.3</code>: <a href="http://asm.ow2.org/jdiff32to33/changes.html" rel="nofollow">http://asm.ow2.org/jdiff32to33/changes.html</a><br>
<code class="notranslate">3.3  -&gt; 3.4</code>: <a href="http://asm.ow2.org/jdiff33to40/changes.html" rel="nofollow">http://asm.ow2.org/jdiff33to40/changes.html</a></p>
<p dir="auto">CGLIB 3.0 was released on May 25th, 2012 <a href="http://cglib.cvs.sourceforge.net/viewvc/cglib/cglib/build.xml?revision=1.56&amp;view=markup" rel="nofollow">2</a> in order to upgrade its dependency on ASM to 4.0.  This also involved some API changes.  Upgrade Spring's dependency on CGLIB (currently at 2.2) to 3.0.  Impact may or may not be significant, but should not have external impact at the API level (because we do not expose CGLIB APIs).  It will be important to advise users as to whether CGLIB 3.0 is the new lower bound supported by Spring as of 3.2 GA, or if 2.2 is still supported (with caveats about Java 7 support).  This depends again on the extent of internal API changes necessary to support the upgrade.</p>
<hr>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398106989" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/12142" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/12142/hovercard" href="https://github.com/spring-projects/spring-framework/issues/12142">#12142</a> <code class="notranslate">@Configuration</code> with AspectJ instead of CGLIB</li>
</ul>