It seems that on top of our double trouble with [text], we have run into
another conversion issue with Java 21, this time in [BeanUtils].
I'd like help figuring this one out:
Error:
org.apache.commons.beanutils2.sql.converters.SqlTimeConverterTestCase.testLocale
-- Time elapsed: 0.009 s <<< FAILURE!
junit.framework.AssertionFailedError: Converting 'java.lang.String' value '3:06
pm' threw org.apache.commons.beanutils2.ConversionException: Error converting
'String' to 'java.sql.Time' using pattern 'h:mm a', localized pattern 'h:mm a',
errorIndex 4, calendar type GregorianCalendar, this
org.apache.commons.beanutils2.sql.converters.SqlTimeConverter[UseDefault=false,
UseLocaleFormat=true]
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.TestCase.fail(TestCase.java:223)
at
org.apache.commons.beanutils2.converters.AbstractDateConverterTest.validConversion(AbstractDateConverterTest.java:572)
at
org.apache.commons.beanutils2.sql.converters.SqlTimeConverterTestCase.testLocale(SqlTimeConverterTestCase.java:118)
[INFO] Running
org.apache.commons.beanutils2.sql.converters.SqlTimestampConverterTestCase
Error: Tests run: 11, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.016
s <<< FAILURE! -- in
org.apache.commons.beanutils2.sql.converters.SqlTimestampConverterTestCase
Error:
org.apache.commons.beanutils2.sql.converters.SqlTimestampConverterTestCase.testLocale
-- Time elapsed: 0.010 s <<< FAILURE!
junit.framework.AssertionFailedError: Converting 'java.lang.String' value
'3/21/06, 3:06 PM' threw org.apache.commons.beanutils2.ConversionException:
Error converting 'String' to 'java.sql.Timestamp' using pattern 'M/d/yy, h:mm
a', localized pattern 'M/d/yy, h:mm a', errorIndex 13, calendar type
GregorianCalendar, this
org.apache.commons.beanutils2.sql.converters.SqlTimestampConverter[UseDefault=false,
UseLocaleFormat=true]
at junit.framework.Assert.fail(Assert.java:57)
at junit.framework.TestCase.fail(TestCase.java:223)
at
org.apache.commons.beanutils2.converters.AbstractDateConverterTest.validConversion(AbstractDateConverterTest.java:572)
at
org.apache.commons.beanutils2.sql.converters.SqlTimestampConverterTestCase.testLocale(SqlTimestampConverterTestCase.java:138)
TY!
Gary
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]