PrimitiveType.asCql(…) renders type names using Java-default locale

Description

Imported issue from https://jira.spring.io/browse/DATACASS-805:

Setting the default locale to Turkish (-Duser.language=tr) causes types containing the character i (such as UUID, TIMESTAMP, INT) to be rendered as: ı when calling DataType.asCql(…).

Example:

Environment

None

Pull Requests

None

Activity

Show:
Alex Dutra
November 19, 2020, 2:19 PM

Other occurrences of String.toLowerCase() exist, I will address them all.

Olivier Michallat
September 21, 2020, 4:34 PM

Caused by toLowerCase call in asCql.

I think toLowerCase(Locale.ROOT) is the best way to address it, Locale.US will work too.

Fixed

Assignee

Alex Dutra

Reporter

Mark Paluch

Reproduced in

4.9.0

Affects versions

Fix versions