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:
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.

Alexandre Dutra
6 days ago

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

Assignee

Alexandre Dutra

Reporter

Mark Paluch

Labels

None

PM Priority

None

Reproduced in

4.9.0

Affects versions

Fix versions

Pull Request

None

Doc Impact

None

Size

None

External issue ID

None

External issue ID

None

Components

Priority

Major
Configure