
| Key: |
JEXL-5
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Paul Libbrecht
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
Environment:
|
Operating System: All
Platform: All
Operating System: All
Platform: All
|
|
|
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.
|
|
Description
|
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. |
Show » |
| No work has yet been logged on this issue.
|
|