HHH-6789 StringIndexOutOfBoundsException at TemplatedViolatedConstraintNameExtracter.extractUsingTemplate

This commit is contained in:
Strong Liu 2011-11-04 06:14:30 +08:00
parent 53cae7ace7
commit ee020c8215
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public abstract class TemplatedViolatedConstraintNameExtracter implements Violat
}
int start = templateStartPosition + templateStart.length();
int end = message.lastIndexOf( templateEnd, start );
int end = message.indexOf( templateEnd, start );
if ( end < 0 ) {
end = message.length();
}