Gavin King (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *commented* on HHH-16859 (
https://hibernate.atlassian.net/browse/HHH-16859?atlOrigin=eyJpIjoiN2I1Zj...
)
Re: max() doesn't work with Enums (
https://hibernate.atlassian.net/browse/HHH-16859?atlOrigin=eyJpIjoiN2I1Zj...
)
So it turns out you got lucky on this one. When I sat down and reviewed all the code for
how comparable types are typechecked, I found some issues, and the most general &
elegant fix happened to fix your problem by accidental side-effect.
I did consider adding in a special case to explicitly reject the usage{{max(enum)}}but,
given that there is at least one person who is relying on that, it would have been a bit
too ornery and contrarian even for me.
(
https://hibernate.atlassian.net/browse/HHH-16859#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16859#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100227- sha1:674e4eb )