Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 6da1282e7030eb4539a31783172c75c9d04ca568
https://github.com/hibernate/hibernate-orm/commit/6da1282e7030eb4539a3178...
Author: Terry Tao <yueyang.tao(a)gmail.com>
Date: 2026-01-07 (Wed, 07 Jan 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/internal/util/SubSequence.java
A hibernate-core/src/test/java/org/hibernate/internal/util/SubSequenceTest.java
Log Message:
-----------
HHH-20032: Fix SubSequence.subSequence bounds checks
SubSequence implements CharSequence but rejected the valid boundary case
start == end == length()
by throwing StringIndexOutOfBoundsException when
start == length.
Relax the start bound check to allow
start == length
and add validation for
end < start
to match the CharSequence contract.
Add a regression test.
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications