Bug 27740 - At execution org.apache.regexp. RE.substr (substIn, substOut, REPLACE_ALL) "bites off" first two symbols of substOut if substOut contains $0-$9
Summary: At execution org.apache.regexp. RE.substr (substIn, substOut, REPLACE_ALL) "b...
Status: CLOSED DUPLICATE of bug 25985
Alias: None
Product: Regexp
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal (vote)
Target Milestone: ---
Assignee: Jakarta Notifications Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-03-17 14:02 UTC by mvtm
Modified: 2005-01-11 13:36 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mvtm 2004-03-17 14:02:46 UTC
At execution org.apache.regexp. RE.substr (substIn, substOut, REPLACE_ALL)
"bites off" first two symbols of substOut if substOut contains $0-$9. Also, if
substOut contains $0-$9 from a position less than 2, subst(.. falls with
StringOutOfBoundsException: String index out of range: -2 (or -1).
Comment 1 Oleg Sukhodolsky 2004-03-18 03:55:18 UTC
It looks like this is a duplicate of 25985 (In MATCH_MULTILINE-mode $ does not 
match end of line).  Could you, please, test with current development version, 
or provide testcase to reproduce the problem.
Comment 2 mvtm 2004-03-18 17:09:44 UTC
I'm downloading jakarta-regexp-20040316.jar. No error detected :)
Comment 3 Vadim Gritsenko 2004-03-18 18:45:38 UTC

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