commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32829] New: - [jexl] 'abc'.substring(0,1+1) is empty (method matching problem!)
Date Thu, 23 Dec 2004 11:08:14 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32829>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32829

           Summary: [jexl] 'abc'.substring(0,1+1) is empty (method matching
                    problem!)
           Product: Commons
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: JEXL
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: paul@activemath.org


This looks to be a method matching bug.
 'abc'.substring(0,1+1) is empty
 'abc'.substring(0,2) gives ab as expected.
The problem seems to be the fact that the result of 1+1 (or any arithmetic operation) is a
Long and that 
long cannot be fed into substring but no attempt to cast the Long to int is done.

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

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


Mime
View raw message