NamedParameterUtils.isParameterSeparator checks for non-ASCII characters

Issue: SPR-16472
This commit is contained in:
Juergen Hoeller
2018-02-07 14:10:39 +01:00
parent 5c0ddf3c69
commit ac7a699356
2 changed files with 6 additions and 6 deletions

View File

@@ -391,7 +391,7 @@ public abstract class NamedParameterUtils {
* that is, whether the given character qualifies as a separator.
*/
private static boolean isParameterSeparator(char c) {
return (separatorIndex[c] || Character.isWhitespace(c));
return (c < 128 && separatorIndex[c]) || Character.isWhitespace(c);
}
/**