You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2008/12/02 19:03:29 UTC

DO NOT REPLY [Bug 46325] New: ELSupport coerceToNumber() problems

https://issues.apache.org/bugzilla/show_bug.cgi?id=46325

           Summary: ELSupport coerceToNumber() problems
           Product: Tomcat 6
           Version: 6.0.18
          Platform: PC
        OS/Version: Mac OS X 10.4
            Status: NEW
          Severity: regression
          Priority: P2
         Component: Servlet & JSP API
        AssignedTo: dev@tomcat.apache.org
        ReportedBy: bublavas@ecetra.com


1) ELSupport.coerceToNumber() cannot coerce java.math.BigDecimal to
java.lang.Number which is basically a no-op. This is a regression from 6.0.16.

Test-case:

@Test
public void testNumberCoercion() {
        BigDecimal d = new BigDecimal("23");
        try {
                Assert.assertEquals(d, ELSupport.coerceToNumber(d,
Number.class));
        } catch (IllegalArgumentException ex) {
                fail("conversion failed");
        }
}

2) BigDecimal is immutable. The code to convert from BigDecimal to BigDecimal
should therefore return its input, not a copy. (ELSupport.java line 235)


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46325] ELSupport coerceToNumber() problems

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46325





--- Comment #2 from Stephan Bublava <bu...@ecetra.com>  2008-12-02 10:57:29 PST ---
> *** This bug has been marked as a duplicate of bug 43656 ***

I only searched open issues before creating a new ticket. Sorry ...


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


DO NOT REPLY [Bug 46325] ELSupport coerceToNumber() problems

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=46325


Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |DUPLICATE




--- Comment #1 from Mark Thomas <ma...@apache.org>  2008-12-02 10:22:21 PST ---


*** This bug has been marked as a duplicate of bug 43656 ***


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org