Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-938 Build fails with test failures when building with JDK 8
  3. LANG-941

Test failure in LocaleUtilsTest when building with JDK 8

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2
    • 3.2.1
    • lang.*
    • None
    • JDK 8

    Description

      Test failure in testParseAllLocales:

      -------------------------------------------------------------------------------
      Test set: org.apache.commons.lang3.LocaleUtilsTest
      -------------------------------------------------------------------------------
      Tests run: 14, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.067 sec <<< FAILURE! - in org.apache.commons.lang3.LocaleUtilsTest
      testParseAllLocales(org.apache.commons.lang3.LocaleUtilsTest)  Time elapsed: 0.015 sec  <<< ERROR!
      java.lang.IllegalArgumentException: Invalid locale format: 
      	at org.apache.commons.lang3.LocaleUtils.toLocale(LocaleUtils.java:98)
      	at org.apache.commons.lang3.LocaleUtilsTest.testParseAllLocales(LocaleUtilsTest.java:569)
      

      The string passed to LocaleUtils.toLocale(String) appears to be empty.

      Environment is:

      Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-17 17:22:22+0200)
      Maven home: /usr/local/Cellar/maven/3.1.1/libexec
      Java version: 1.8.0-ea, vendor: Oracle Corporation
      Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0.jdk/Contents/Home/jre
      Default locale: de_DE, platform encoding: UTF-8
      OS name: "mac os x", version: "10.9.1", arch: "x86_64", family: "mac"
      
      java version "1.8.0-ea"
      Java(TM) SE Runtime Environment (build 1.8.0-ea-b116)
      Java HotSpot(TM) 64-Bit Server VM (build 25.0-b58, mixed mode)
      

      Attachments

        Activity

          People

            britter Benedikt Ritter
            britter Benedikt Ritter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: