Branch: refs/heads/main
Home:
https://github.com/hibernate/hibernate-orm
Commit: 96b08644f108cd80b13899dc209db992095f6ab3
https://github.com/hibernate/hibernate-orm/commit/96b08644f108cd80b13899d...
Author: Tim Boevé <tim.boeve(a)topicus.nl>
Date: 2026-08-12 (Wed, 12 Aug 2026)
Changed paths:
A
hibernate-core/src/test/java/org/hibernate/orm/test/query/criteria/EnumConstantBodyLiteralTest.java
Log Message:
-----------
HHH-20776 Add test for issue
Co-Authored-By: Claude Opus 5 (1M context) <noreply(a)anthropic.com>
Commit: c0ea65dec95e10f93709a289f9c0314963af22ca
https://github.com/hibernate/hibernate-orm/commit/c0ea65dec95e10f93709a28...
Author: Tim Boevé <tim.boeve(a)topicus.nl>
Date: 2026-08-12 (Wed, 12 Aug 2026)
Changed paths:
M
hibernate-core/src/main/java/org/hibernate/metamodel/model/domain/internal/MappingMetamodelImpl.java
Log Message:
-----------
HHH-20776 CriteriaBuilder.literal() mistypes an enum constant declared with a class
body
The runtime class of an enum constant declared with a class body is an
anonymous subclass of the enum type, for which Class.isEnum() returns false.
resolveParameterBindType(T) therefore fell through to the Serializable branch
instead of returning null and leaving the type to be inferred from the
expression the literal is compared against.
unproxiedClass now resolves the declaring class for enum values, which covers
both the isEnum() check and searchSupertypesForBindableType, whose walk would
otherwise start at the anonymous subclass.
Co-Authored-By: Claude Opus 5 (1M context) <noreply(a)anthropic.com>
Compare:
https://github.com/hibernate/hibernate-orm/compare/9b53b83a5a8f...c0ea65d...
To unsubscribe from these emails, change your notification settings at
https://github.com/hibernate/hibernate-orm/settings/notifications