Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMTRjYjAwYWI4...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-16196?atlOrigin=eyJpIjoiMTRjYj...
) HHH-16196 (
https://hibernate.atlassian.net/browse/HHH-16196?atlOrigin=eyJpIjoiMTRjYj...
) Coerce literals used in HQL constructor invocation (
https://hibernate.atlassian.net/browse/HHH-16196?atlOrigin=eyJpIjoiMTRjYj...
)
Issue Type: Bug Affects Versions: 6.2.0.CR2 Assignee: Unassigned Components:
hibernate-core Created: 17/Feb/2023 08:34 AM Priority: Major Reporter: Christian Beikov (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
HQL: select new CatProjectionBean('fake_cat', 'fake_owner', 12.5) from Cat
c
Java: public CatProjectionBean(String name, String ownerName, Double weight) { }
This fails in 6 because 12.5 is parsed as float literal. When parsing a HQL constructor
invocation, we should be a bit lenient though and allow parsing the literal also as
Double.
(
https://hibernate.atlassian.net/browse/HHH-16196#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16196#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#100216- sha1:3fa9804 )