sharanggupta opened a new pull request, #11513:
URL: https://github.com/apache/rocketmq/pull/11513
### Which Issue(s) This PR Fixes
Fixes #11512
### Brief Description
`CompressionType.of` upper-cased the name with the default locale, so under
the Turkish locale a lower/mixed-case value containing `i` (e.g. `zlib` ->
`ZLİB`) missed the switch and threw at producer start-up. Parse with
`Locale.ROOT` and add a regression test.
### How Did You Test This Change?
Added `CompressionTypeTest.testCompressionTypeOfIsLocaleIndependent` (sets
default locale to tr-TR, asserts `of("zlib")`/`of("Zlib")` return ZLIB); full
`CompressionTypeTest` passes.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]