[PATCH] LambdaTranslationTest[1|2] may fail when executed with other locale than US
Hi Joel, as I already wrote [1] the tests jdk/lambda/LambdaTranslationTest1.java jdk/lambda/LambdaTranslationTest2.java fails when they are executed with other locale than US. The tests make use of Locale sensitive APIs and assume that the current Locale has the same formatting rules as Locale.US. The test LambdaTranslationTest1 fails with the message: test LambdaTranslationTest1.testMethodRefs(): failure java.lang.AssertionError: expected [d:1234.000000] but found [d:1234,000000] The test LambdaTranslationTest2 fails with the message: test LambdaTranslationTest2.testBoxing(): failure java.lang.AssertionError: expected [b1 s2 cA i4 j5 ztrue f6,000000 d7,000000] but found [b1 s2 cA i4 j5 ztrue f6.000000 d7.000000] To reproduce the failure you should execute following commands in the shell (tested only on Linux): export LANG=de_DE.utf8 export LC_PAPER=de_DE.utf8 export LC_MONETARY=de_DE.utf8 export LC_NUMERIC=de_DE.utf8 export LC_MEASUREMENT=de_DE.utf8 export LC_TIME=de_DE.utf8 make test TEST=jdk_lang I have created patch to fix this problem. The patch is attached to this mail. Best regards, Andrej Golovnin [1] http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-June/027194.html
participants (1)
-
Andrej Golovnin