You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2017/02/19 17:15:45 UTC

[jira] [Commented] (LANG-1265) Build failures when building with Java 9 EA

    [ https://issues.apache.org/jira/browse/LANG-1265?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15873757#comment-15873757 ] 

Pascal Schumacher commented on LANG-1265:
-----------------------------------------

The FastDateFormat related failures do not occur with java 9 build 157.

There are now test failures in FieldUtilsTest and ToStringBuilderTest related to much stricter restrictions on reflection. These disappear if you open up jdk modules for reflection. For example the tests pass when run with:

{code}
mvn test -DargLine="--add-opens java.base/java.lang.reflect=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED"
{code}

The test failure "LocaleUtilsTest.testParseAllLocales:578 » IllegalArgument Invalid locale forma..." remains.



> Build failures when building with Java 9 EA
> -------------------------------------------
>
>                 Key: LANG-1265
>                 URL: https://issues.apache.org/jira/browse/LANG-1265
>             Project: Commons Lang
>          Issue Type: Bug
>            Reporter: Benedikt Ritter
>             Fix For: 3.6
>
>
> When building with Java 9 EA I get: 
> {code}
> Failed tests:
>  FastDateFormat_ParserTest>FastDateParserTest.testLocales_LongNoEra_AD:304->FastDateParserTest.testLocales:342 Locale no failed with yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era AD
> java.text.ParseException: Unparseable date: 2003/februar/0010/0012/0000/00/AM/mandag
>   FastDateFormat_ParserTest>FastDateParserTest.testLocales_LongNoEra_BC:309->FastDateParserTest.testLocales:342 Locale no failed with yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era BC
> java.text.ParseException: Unparseable date: 2003/februar/0010/0012/0000/00/AM/lørdag
>   FastDateFormat_ParserTest>FastDateParserTest.testLocales_Long_AD:284->FastDateParserTest.testLocales:342 Locale no failed with GGGG/yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era AD
> java.text.ParseException: Unparseable date: AD/2003/februar/0010/0012/0000/00/AM/mandag
>   FastDateFormat_ParserTest>FastDateParserTest.testLocales_Long_BC:289->FastDateParserTest.testLocales:342 Locale qu_EC failed with GGGG/yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era BC
> java.text.ParseException: Unparseable date: "/2003/Hatun puquy/0010/0012/0000/00/a.m./Sábado"
>   FastDateFormat_ParserTest>FastDateParserTest.testLocales_ShortNoEra_AD:314->FastDateParserTest.testLocales:342 Locale no failed with y/M/d/h/a/m/s/E era AD
> java.text.ParseException: Unparseable date: 2003/2/10/12/AM/0/0/ma
>   FastDateFormat_ParserTest>FastDateParserTest.testLocales_ShortNoEra_BC:319->FastDateParserTest.testLocales:342 Locale no failed with y/M/d/h/a/m/s/E era BC
> java.text.ParseException: Unparseable date: 2003/2/10/12/AM/0/0/lø
>   FastDateFormat_ParserTest>FastDateParserTest.testLocales_Short_AD:294->FastDateParserTest.testLocales:342 Locale no failed with G/y/M/d/h/a/m/s/E era AD
> java.text.ParseException: Unparseable date: e.Kr./2003/2/10/12/AM/0/0/ma
>   FastDateFormat_ParserTest>FastDateParserTest.testLocales_Short_BC:299->FastDateParserTest.testLocales:342 Locale qu_EC failed with G/y/M/d/h/a/m/s/E era BC
> java.text.ParseException: Unparseable date: "/2003/2/10/12/a.m./0/0/Sab"
>   FastDateParserTest.testLocales_LongNoEra_AD:304->testLocales:342 Locale no failed with yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era AD
> java.text.ParseException: Unparseable date: 2003/februar/0010/0012/0000/00/AM/mandag
>   FastDateParserTest.testLocales_LongNoEra_BC:309->testLocales:342 Locale no failed with yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era BC
> java.text.ParseException: Unparseable date: 2003/februar/0010/0012/0000/00/AM/lørdag
>   FastDateParserTest.testLocales_Long_AD:284->testLocales:342 Locale no failed with GGGG/yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era AD
> java.text.ParseException: Unparseable date: AD/2003/februar/0010/0012/0000/00/AM/mandag
>   FastDateParserTest.testLocales_Long_BC:289->testLocales:342 Locale qu_EC failed with GGGG/yyyy/MMMM/dddd/hhhh/mmmm/ss/aaaa/EEEE era BC
> java.text.ParseException: Unparseable date: "/2003/Hatun puquy/0010/0012/0000/00/a.m./Sábado"
>   FastDateParserTest.testLocales_ShortNoEra_AD:314->testLocales:342 Locale no failed with y/M/d/h/a/m/s/E era AD
> java.text.ParseException: Unparseable date: 2003/2/10/12/AM/0/0/ma
>   FastDateParserTest.testLocales_ShortNoEra_BC:319->testLocales:342 Locale no failed with y/M/d/h/a/m/s/E era BC
> java.text.ParseException: Unparseable date: 2003/2/10/12/AM/0/0/lø
>   FastDateParserTest.testLocales_Short_AD:294->testLocales:342 Locale no failed with G/y/M/d/h/a/m/s/E era AD
> java.text.ParseException: Unparseable date: e.Kr./2003/2/10/12/AM/0/0/ma
>   FastDateParserTest.testLocales_Short_BC:299->testLocales:342 Locale qu_EC failed with G/y/M/d/h/a/m/s/E era BC
> java.text.ParseException: Unparseable date: "/2003/2/10/12/a.m./0/0/Sab"
> Tests in error:
>   LocaleUtilsTest.testParseAllLocales:578 » IllegalArgument Invalid locale forma...
>   FastDateFormat_ParserTest>FastDateParserTest.testParses:252->FastDateParserTest.validateSdfFormatFdpParseEquality:228 » Parse
>   FastDateFormat_ParserTest>FastDateParserTest.testTzParses:275 » Parse Unparsea...
>   FastDateParserTest.testParses:252->validateSdfFormatFdpParseEquality:228 » Parse
>   FastDateParserTest.testTzParses:275 » Parse Unparseable date: 2000/02/10 北美东部标...
> Tests run: 3882, Failures: 16, Errors: 5, Skipped: 5
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)