<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=obecker" rel="nofollow">Oliver Becker</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-9164?redirect=false" rel="nofollow">SPR-9164</a></strong> and commented</p>
<p dir="auto">When doing number arithmetic in SpEL the result type is apparently one of double, long or int.<br>
This has the unwanted effect that for example float or BigDecimal values will be changed to int.</p>
<p dir="auto">new java.math.BigDecimal("12.34")<br>
evaluates to 12.34</p>
<p dir="auto">-(new java.math.BigDecimal("12.34"))<br>
evaluates to -12</p>
<p dir="auto">see org.springframework.expression.spel.ast<br>
OpPlus, OpMinus, OpMultiply, OpDivide</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 3.1.1</p>
<p dir="auto"><strong>Reference URL:</strong> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="4587405" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/80" data-hovercard-type="pull_request" data-hovercard-url="/spring-projects/spring-framework/pull/80/hovercard" href="https://github.com/spring-projects/spring-framework/pull/80">#80</a></p>
<p dir="auto"><strong>Attachments:</strong></p>
<ul dir="auto">
<li><a href="https://jira.spring.io/secure/attachment/19821/SpELFloatLiteralTest.java" rel="nofollow">SpELFloatLiteralTest.java</a> (<em>1.24 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="398114688" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13358" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13358/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13358">#13358</a> Expression language not compare BigDecimals with integers (<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="398117750" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/13832" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/13832/hovercard" href="https://github.com/spring-projects/spring-framework/issues/13832">#13832</a> SpEL: OpEQ should use equals()</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398164627" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/15943" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/15943/hovercard" href="https://github.com/spring-projects/spring-framework/issues/15943">#15943</a> Downgrade accidental use of Java 1.7 APIs</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398151045" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14121" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14121/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14121">#14121</a> Add SpEL support for float literals</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398154260" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/14546" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/14546/hovercard" href="https://github.com/spring-projects/spring-framework/issues/14546">#14546</a> SpEL's arithmetic operations should explicitly detect BigInteger/Short/Byte and fall back to double handling for unknown Number subtypes</li>
</ul>
<p dir="auto">1 votes, 7 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=davidkarlsen" rel="nofollow">David J. M. Karlsen</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-1371?redirect=false" rel="nofollow">SPR-1371</a></strong> and commented</p>
<p dir="auto">Using JamonPerformanceMonitorInterceptor while log4j is in debug level will consistently fail (eg. each time) with a NPE:</p>
<p dir="auto">Trace from server: 1198777258 at host localhost &gt;&gt;<br>
java.rmi.RemoteException: ; nested exception is:<br>
java.lang.NullPointerException<br>
java.lang.NullPointerException<br>
at java.lang.String.length(String.java(Inlined Compiled Code))<br>
at java.lang.StringBuffer.&lt;init&gt;(StringBuffer.java(Compiled Code))<br>
at org.springframework.aop.interceptor.AbstractPerformanceMonitorInterceptor.createInvocationTraceName(AbstractPerformanceMonitorInterceptor.java:80)<br>
at org.springframework.aop.interceptor.JamonPerformanceMonitorInterceptor.invokeUnderTrace(JamonPerformanceMonitorInterceptor.java:57)<br>
at org.springframework.aop.interceptor.AbstractTraceInterceptor.invoke(AbstractTraceInterceptor.java:94)<br>
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)<br>
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:174)<br>
at $Proxy0.findAccountData(Unknown Source)<br>
at my.package.crg.server.func.ejb.CRGServiceBean.findAccountData(CRGServiceBean.java:77)<br>
at my.package.crg.server.func.ejb.EJSRemoteStatelessCRGService_692891ba.findAccountData(EJSRemoteStatelessCRGService_692891ba.java:35)<br>
at my.package.crg.server.func.ejb._EJSRemoteStatelessCRGService_692891ba_Tie.findAccountData(_EJSRemoteStatelessCRGService_692891ba_Tie.java:158)<br>
at no.dnbnor.crg.server.func.ejb._EJSRemoteStatelessCRGService_692891ba_Tie._invoke(_EJSRemoteStatelessCRGService_692891ba_Tie.java:82)<br>
at com.ibm.CORBA.iiop.ServerDelegate.dispatchInvokeHandler(ServerDelegate.java:615)<br>
at com.ibm.CORBA.iiop.ServerDelegate.dispatch(ServerDelegate.java:468)<br>
at com.ibm.rmi.iiop.ORB.process(ORB.java:396)<br>
at com.ibm.CORBA.iiop.ORB.process(ORB.java:1608)<br>
at com.ibm.rmi.iiop.Connection.doWork(Connection.java:2164)<br>
at com.ibm.rmi.iiop.WorkUnitImpl.doWork(WorkUnitImpl.java:63)<br>
at com.ibm.ejs.oa.pool.PooledThread.run(ThreadPool.java:95)<br>
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:593)<br>
&lt;&lt;  END server: 1198777258 at host localhost</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 1.2.5</p>
<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="398061399" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/6161" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/6161/hovercard" href="https://github.com/spring-projects/spring-framework/issues/6161">#6161</a> Nullpointerexception in StringBuffer when using the org.springframework.aop.interceptor.PerformanceMonitorInterceptor (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>