[FIXED HUDSON-6252] fix bad index calculation in SubText.subText which

caused StringIndexOutOfBoundsException in UrlAnnotator.  Added test.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@30102 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
mindless committed 2010-04-16 00:23:00 +00:00
1 parent be39749c1d
commit c2fd840846
2 files changed
+16 -3

No files matched your search

+1 -1
View File
@@ -98,7 +98,7 @@ public class MarkupText extends AbstractMarkupText {
@Override
public SubText subText(int start, int end) {
return MarkupText.this.subText(this.start+start,
end<0 ? this.end+1+end : this.end+end);
end<0 ? this.end+1+end : this.start+end);
}
@Override