Closed
Description
Petar Tahchiev opened SPR-17516 and commented
Prior to spring-core 5.1.x calling this method:
StringUtils.parseLocaleString("some-locale-that-does-not-exist")
would throw IllegalArgumentException. However in spring-core 5.1.x (tested with 5.1.3.BUILD-SNAPSHOT) it doesn't. It simply returns a java.util.Locale object with language="some-locale-that-does-not-exist", region="", country=""
Affects: 5.1.2
Issue Links:
- CookieLocaleResolver is not RFC6265 compliant when setting a locale and time zone [SPR-16700] #21241 CookieLocaleResolver is not RFC6265 compliant when setting a locale and time zone