Description
While tracing some TestBlobHandler failures with the thai locale I found that the problem was MessageFormat.format which when given a Number ultimately executes NumberFormat.getInstance(getLocale()).format(argument). In thai locale, this transforms the digit 1 to a thai character and hence fails the test.
We should audit all usages of MessageFormat.format to see if any Number objects are being passed as argument and wrap them with String.valueOf().
Edit - Actually most format operations use the default locale so we should just ban this API outright.
Attachments
Attachments
Issue Links
- breaks
-
SOLR-6955 TestBlobHandler Failure.
- Resolved
- contains
-
SOLR-6955 TestBlobHandler Failure.
- Resolved
- duplicates
-
SOLR-7244 reproducible failures for TestDynamicLoading (thai locale)
- Resolved
-
SOLR-6917 TestDynamicLoading fails frequently.
- Closed
- is related to
-
SOLR-7244 reproducible failures for TestDynamicLoading (thai locale)
- Resolved