[IO] Java 16 failure
In a default Java 16 run, we get the failure below. Is there a better way to write this code? Error: Failed to execute goal com.github.siom79.japicmp:japicmp-maven-plugin:0.14.4:cmp (default-cli) on project commons-vfs2: Execution default-cli of goal com.github.siom79.japicmp:japicmp-maven-plugin:0.14.4:cmp failed: An API incompatibility was encountered while executing com.github.siom79.japicmp:japicmp-maven-plugin:0.14.4:cmp: java.lang.ExceptionInInitializerError: null Error: - Error: realm = plugin>com.github.siom79.japicmp:japicmp-maven-plugin:0.14.4 Error: strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy Error: urls[0] = file:/home/runner/.m2/repository/com/github/siom79/japicmp/japicmp-maven-plugin/0.14.4/japicmp-maven-plugin-0.14.4.jar Error: urls[1] = file:/home/runner/.m2/repository/org/sonatype/aether/aether-util/1.11/aether-util-1.11.jar Error: urls[2] = file:/home/runner/.m2/repository/org/sonatype/sisu/sisu-inject-bean/2.1.1/sisu-inject-bean-2.1.1.jar Error: urls[3] = file:/home/runner/.m2/repository/org/sonatype/sisu/sisu-guice/2.9.4/sisu-guice-2.9.4-no_aop.jar Error: urls[4] = file:/home/runner/.m2/repository/org/codehaus/plexus/plexus-interpolation/1.14/plexus-interpolation-1.14.jar Error: urls[5] = file:/home/runner/.m2/repository/org/codehaus/plexus/plexus-utils/2.0.6/plexus-utils-2.0.6.jar Error: urls[6] = file:/home/runner/.m2/repository/org/codehaus/plexus/plexus-component-annotations/1.5.5/plexus-component-annotations-1.5.5.jar Error: urls[7] = file:/home/runner/.m2/repository/org/sonatype/plexus/plexus-sec-dispatcher/1.3/plexus-sec-dispatcher-1.3.jar Error: urls[8] = file:/home/runner/.m2/repository/org/sonatype/plexus/plexus-cipher/1.4/plexus-cipher-1.4.jar Error: urls[9] = file:/home/runner/.m2/repository/com/github/siom79/japicmp/japicmp/0.14.4/japicmp-0.14.4.jar Error: urls[10] = file:/home/runner/.m2/repository/org/javassist/javassist/3.24.0-GA/javassist-3.24.0-GA.jar Error: urls[11] = file:/home/runner/.m2/repository/com/google/guava/guava/18.0/guava-18.0.jar Error: urls[12] = file:/home/runner/.m2/repository/javax/xml/bind/jaxb-api/2.2.7/jaxb-api-2.2.7.jar Error: urls[13] = file:/home/runner/.m2/repository/com/sun/xml/bind/jaxb-core/2.2.7/jaxb-core-2.2.7.jar Error: urls[14] = file:/home/runner/.m2/repository/com/sun/istack/istack-commons-runtime/2.16/istack-commons-runtime-2.16.jar Error: urls[15] = file:/home/runner/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.7/jaxb-impl-2.2.7.jar Error: urls[16] = file:/home/runner/.m2/repository/com/sun/xml/fastinfoset/FastInfoset/1.2.12/FastInfoset-1.2.12.jar Error: urls[17] = file:/home/runner/.m2/repository/javax/xml/bind/jsr173_api/1.0/jsr173_api-1.0.jar Error: urls[18] = file:/home/runner/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar Error: urls[19] = file:/home/runner/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.3/maven-reporting-impl-2.3.jar Error: urls[20] = file:/home/runner/.m2/repository/backport-util-concurrent/backport-util-concurrent/3.1/backport-util-concurrent-3.1.jar Error: urls[21] = file:/home/runner/.m2/repository/junit/junit/3.8.1/junit-3.8.1.jar Error: urls[22] = file:/home/runner/.m2/repository/org/apache/maven/shared/maven-shared-utils/0.6/maven-shared-utils-0.6.jar Error: urls[23] = file:/home/runner/.m2/repository/com/google/code/findbugs/jsr305/2.0.1/jsr305-2.0.1.jar Error: urls[24] = file:/home/runner/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.2/doxia-sink-api-1.2.jar Error: urls[25] = file:/home/runner/.m2/repository/org/apache/maven/doxia/doxia-core/1.2/doxia-core-1.2.jar Error: urls[26] = file:/home/runner/.m2/repository/commons-lang/commons-lang/2.4/commons-lang-2.4.jar Error: urls[27] = file:/home/runner/.m2/repository/org/apache/httpcomponents/httpclient/4.0.2/httpclient-4.0.2.jar Error: urls[28] = file:/home/runner/.m2/repository/org/apache/httpcomponents/httpcore/4.0.1/httpcore-4.0.1.jar Error: urls[29] = file:/home/runner/.m2/repository/commons-codec/commons-codec/1.3/commons-codec-1.3.jar Error: urls[30] = file:/home/runner/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.2/doxia-site-renderer-1.2.jar Error: urls[31] = file:/home/runner/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.2/doxia-decoration-model-1.2.jar Error: urls[32] = file:/home/runner/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.2/doxia-module-xhtml-1.2.jar Error: urls[33] = file:/home/runner/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.2/doxia-module-fml-1.2.jar Error: urls[34] = file:/home/runner/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar Error: urls[35] = file:/home/runner/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar Error: urls[36] = file:/home/runner/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar Error: urls[37] = fil
JDK 16-EA issue
Hi Rory and all, Before I go through creating a bug, I wanted to run this one by you all first. All tests pass on Java 8 and 11. We have known failures on 15, and new ones on 16. Just like Apache Commons Lang [https://github.com/apache/commons-lang] ran into issues https://bugs.openjdk.java.net/browse/JDK-8248434 and https://bugs.openjdk.java.net/browse/JDK-8248655) on Java 15 now fixed on Java 16, we've found another that fails on Java 15 and 16-ea+29 with locale sq_MK in our unit test org.apache.commons.lang3.time.Java15BugFastDateParserTest which you see in action here: https://github.com/apache/commons-lang/runs/1622593373?check_suite_focus=true How to reproduce (requires git and Apache Maven): git clone https://gitbox.apache.org/repos/asf/commons-lang.git mvn clean test For example, we expect to parse a date into a certain value but we get an unexpected value: Mon Feb 10 00:00:00 GMT+00:00 2003> but was: expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.java:86) at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_AD(Java15BugFastDateParserTest.java:94) In case the GitHub build falls off, here is the complete list of errors: Error: Tests run: 18, Failures: 16, Errors: 0, Skipped: 0, Time elapsed: 0.658 s <<< FAILURE! - in org.apache.commons.lang3.time.Java15BugFastDateParserTest Error: org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_AD(TriFunction)[1] Time elapsed: 0.14 s <<< FAILURE! org.opentest4j.AssertionFailedError: locale : sq_MK, formattedDate : mb.K./2003/shkurt/0010/0012//00/e paradites/e hënë, Java: 16-ea+29 ==> expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.java:86) at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_AD(Java15BugFastDateParserTest.java:94) Error: org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_AD(TriFunction)[2] Time elapsed: 0.04 s <<< FAILURE! org.opentest4j.AssertionFailedError: locale : sq_MK, formattedDate : mb.K./2003/shkurt/0010/0012//00/e paradites/e hënë, Java: 16-ea+29 ==> expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.java:86) at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_AD(Java15BugFastDateParserTest.java:94) Error: org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_BC(TriFunction)[1] Time elapsed: 0.057 s <<< FAILURE! org.opentest4j.AssertionFailedError: locale : sq_MK, formattedDate : p.K./2003/shkurt/0010/0012//00/e paradites/e shtunë, Java: 16-ea+29 ==> expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.java:86) at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_BC(Java15BugFastDateParserTest.java:101) Error: org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_BC(TriFunction)[2] Time elapsed: 0.033 s <<< FAILURE! org.opentest4j.AssertionFailedError: locale : sq_MK, formattedDate : p.K./2003/shkurt/0010/0012//00/e paradites/e shtunë, Java: 16-ea+29 ==> expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.java:86) at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_Long_BC(Java15BugFastDateParserTest.java:101) Error: org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_ShortNoEra_AD(TriFunction)[1] Time elapsed: 0.011 s <<< FAILURE! org.opentest4j.AssertionFailedError: locale : sq_MK, formattedDate : 2003/2/10/12/e paradites/0/0/Hën, Java: 16-ea+29 ==> expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.java:86) at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_ShortNoEra_AD(Java15BugFastDateParserTest.java:136) Error: org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_ShortNoEra_AD(TriFunction)[2] Time elapsed: 0.01 s <<< FAILURE! org.opentest4j.AssertionFailedError: locale : sq_MK, formattedDate : 2003/2/10/12/e paradites/0/0/Hën, Java: 16-ea+29 ==> expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.java:86) at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_ShortNoEra_AD(Java15BugFastDateParserTest.java:136) Error: org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales_ShortNoEra_BC(TriFunction)[1] Time elapsed: 0.011 s <<< FAILURE! org.opentest4j.AssertionFailedError: locale : sq_MK, formattedDate : 2003/2/10/12/e paradites/0/0/Sht, Java: 16-ea+29 ==> expected: but was: at org.apache.commons.lang3.time.Java15BugFastDateParserTest.testLocales(Java15BugFastDateParserTest.ja
[LANG] BigSur and org.apache.commons.lang3.SystemUtils
If anyone is running Big Sur, may you provide a PR to update SystemUtils? TY! Gary
Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils
Which is the problem with BigSur? Enrico Il Mar 29 Dic 2020, 19:52 Gary Gregory ha scritto: > If anyone is running Big Sur, may you provide a PR to update SystemUtils? > > TY! > Gary >
[DBCP] TestSynchronizationOrder failure, random or bug
Hi All: I just saw on https://github.com/apache/commons-dbcp/runs/1622526568?check_suite_focus=true [INFO] Running org.apache.commons.dbcp2.managed.TestSynchronizationOrder Error: Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.088 s <<< FAILURE! - in org.apache.commons.dbcp2.managed.TestSynchronizationOrder Error: testInterposedSynchronization Time elapsed: 0.077 s <<< ERROR! java.sql.SQLException: Unable to enlist connection because the transaction has been garbage collected at org.apache.commons.dbcp2.managed.TestSynchronizationOrder.testInterposedSynchronization(TestSynchronizationOrder.java:118) Is this random or a bug? Gary
Re: [LANG] BigSur and org.apache.commons.lang3.SystemUtils
There is no problem. We define constants to test if you are running on a specific OS and its variant. We just need a new constant and test like we have for all the others. Gary On Tue, Dec 29, 2020 at 1:54 PM Enrico Olivelli wrote: > Which is the problem with BigSur? > > Enrico > > Il Mar 29 Dic 2020, 19:52 Gary Gregory ha > scritto: > > > If anyone is running Big Sur, may you provide a PR to update SystemUtils? > > > > TY! > > Gary > > >