Branch: refs/heads/7.1
Home:
https://github.com/hibernate/hibernate-orm
Commit: eafaf38201a0fcaa5e20c448b1ec21531be697a4
https://github.com/hibernate/hibernate-orm/commit/eafaf38201a0fcaa5e20c44...
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