RFR(S): 8172695: (scanner) java/util/Scanner/ScanTest.java fails
christoph.langer at sap.com
Mon Mar 18 14:51:36 UTC 2019
please review a fix for 8172695, where java/util/Scanner/ScanTest.java fails. It reproducibly fails on one of our Mac servers, where the locale is set to en_DE.
The test in its current form checks if the test VM is run with a supported default Locale by just checking the language to be one of "en", "zh", "ko", "ja". But it turns out, that also the country part seems to be important. I suggest to change the test case to test whether the VM's default locale is one of a restricted set of locales and if it isn't, it shall try to run with "ENGLISH".
I tested the set of US, UK, CHINA, KOREA, JAPAN and GERMANY to work on my machine. Before pushing, I'd run it through the submit repo.
More information about the core-libs-dev