You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/12/23 12:08:14 UTC
DO NOT REPLY [Bug 32829] New: -
[jexl] 'abc'.substring(0,1+1) is empty (method matching problem!)
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