Commons Lang
  1. Commons Lang
  2. LANG-271

LocaleUtils test fails under Mustang

    Details

      Description

      Testsuite: org.apache.commons.lang.LangTestSuite
      Tests run: 635, Failures: 1, Errors: 0, Time elapsed: 4.467 sec

      ------------- Standard Output ---------------

      ------------- ---------------- ---------------
      Testcase: testLanguagesByCountry(org.apache.commons.lang.LocaleUtilsTest): FAILED
      expected:<1> but was:<2>
      junit.framework.AssertionFailedError: expected:<1> but was:<2>
      at org.apache.commons.lang.LocaleUtilsTest.assertLanguageByCountry(LocaleUtilsTest.java:396)
      at org.apache.commons.lang.LocaleUtilsTest.testLanguagesByCountry(LocaleUtilsTest.java:426)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        Activity

        Hide
        Henri Yandell added a comment -

        In Java 1.6, the US languages go from "en_US" to "en_US, es_US".

        This is a problem once we need to compile on 1.6, but it doesn't cause a problem I think for the usage of a Lang 2.2 jar under the 1.6 JVM.

        So punting this to 2.3.

        Show
        Henri Yandell added a comment - In Java 1.6, the US languages go from "en_US" to "en_US, es_US". This is a problem once we need to compile on 1.6, but it doesn't cause a problem I think for the usage of a Lang 2.2 jar under the 1.6 JVM. So punting this to 2.3.
        Hide
        Stephen Colebourne added a comment -

        We should just change the test to a country which is truly single language.

        Show
        Stephen Colebourne added a comment - We should just change the test to a country which is truly single language.
        Hide
        Stephen Colebourne added a comment -

        Change from US to GB to get one language

        Show
        Stephen Colebourne added a comment - Change from US to GB to get one language

          People

          • Assignee:
            Stephen Colebourne
            Reporter:
            Henri Yandell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development