Issue Details (XML | Word | Printable)

Key: JEXL-5
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Paul Libbrecht
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Commons JEXL

[jexl] 'abc'.substring(0,1+1) is empty (method matching problem!)

Created: 23/Dec/04 08:08 PM   Updated: 16/May/06 11:38 AM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Operating System: All
Platform: All

Bugzilla Id: 32829


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Henri Yandell made changes - 16/May/06 09:50 AM
Field Original Value New Value
issue.field.bugzillaimportkey 32829 12341959
Henri Yandell made changes - 16/May/06 11:38 AM
Component/s JEXL [ 12311119 ]
Affects Version/s unspecified [ 12311647 ]
Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
Key COM-1807 JEXL-5
Project Commons [ 12310458 ] Commons JEXL [ 12310479 ]