Patrick Strawderman (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiMWFjYTIzYWZi...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-14032?atlOrigin=eyJpIjoiMWFjYT...
) HHH-14032 (
https://hibernate.atlassian.net/browse/HHH-14032?atlOrigin=eyJpIjoiMWFjYT...
) Locales with scripts are not round-tripped properly (
https://hibernate.atlassian.net/browse/HHH-14032?atlOrigin=eyJpIjoiMWFjYT...
)
Change By: Patrick Strawderman (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
Locales including scripts are not round-tripped properly by LocaleTypeDescriptor. An
example of such a locale is “zh-Hant-HK”, which gets converted to a String as
“zh_HK_#Hant” but read back as “zh-Hant”.
LocaleTypeDescriptor.fromString builds the Locale instance using uses the Locale
constructor, which does not allow specifying a script or extension; alternatives would be
to use [ Locale.forLanguageTag
|https://docs.oracle.com/javase/8/docs/api/java/util/Locale.html#forLanguageTag-java.lang.String-]
, or [ Locale.Builder |https://docs.
oracle.com/javase/8/docs/api/java/util/Locale.Builder.html].
(
https://hibernate.atlassian.net/browse/HHH-14032#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-14032#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#100126- sha1:82783e0 )