#1108576 libcommons-validator-java: FTBFS with default Java 25

#1108576#5
Date:
2025-07-01 04:21:26 UTC
From:
To:
Dear Maintainers,

The package libcommons-validator-java ftbfs with default Java 25.
The relevant part of the build log:
---------------
[INFO] Running org.apache.commons.validator.LocaleTest
[INFO] Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 s - in org.apache.commons.validator.LocaleTest
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR]   GenericTypeValidatorTest.testFRLocale:115->localeTest:78 Expecting date result to be an instance of Date for locale: fr ==> expected: <true> but was: <false>
[ERROR]   BigDecimalValidatorTest.testBigDecimalValidatorMethods:126 validate(A) locale  ==> expected: <12345> but was: <12.345>
[ERROR]   BigDecimalValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   BigDecimalValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <1234.5> but was: <null>
[ERROR]   BigIntegerValidatorTest.testBigIntegerValidatorMethods:121 validate(A) locale  ==> expected: <12345> but was: <null>
[ERROR]   BigIntegerValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   BigIntegerValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <1234> but was: <null>
[ERROR]   ByteValidatorTest.testByteValidatorMethods:131 validate(A) locale  ==> expected: <123> but was: <null>
[ERROR]   ByteValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   ByteValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <123> but was: <null>
[ERROR]   CalendarValidatorTest.testDateTimeStyle:245 validate(A) default ==> expected: <true> but was: <false>
[ERROR]   CalendarValidatorTest.testFormat:264 default ==> expected: <31/12/05> but was: <12/31/05>
[ERROR]   CurrencyValidatorTest.testIntegerValid:84 Default locale ==> expected: <1234.00> but was: <null>
[ERROR]   CurrencyValidatorTest.testValid:168 Default locale ==> expected: <1234.56> but was: <null>
[ERROR]   DateValidatorTest.testDateValidatorMethods:141 validate(A) locale  ==> expected: <Sat Dec 31 00:00:00 UTC 2005> but was: <null>
[ERROR]   DoubleValidatorTest.testDoubleValidatorMethods:120 validate(A) locale ==> expected: <12345.0> but was: <12.345>
[ERROR]   DoubleValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   DoubleValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <1234.5> but was: <null>
[ERROR]   FloatValidatorTest.testFloatValidatorMethods:150 validate(A) locale ==> expected: <12345.0> but was: <12.345>
[ERROR]   FloatValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   FloatValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <1234.5> but was: <null>
[ERROR]   IntegerValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   IntegerValidatorTest.testIntegerValidatorMethods:128 validate(A) locale ==> expected: <12345> but was: <null>
[ERROR]   IntegerValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <1234> but was: <null>
[ERROR]   LongValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   LongValidatorTest.testLongValidatorMethods:131 validate(A) locale ==> expected: <12345> but was: <null>
[ERROR]   LongValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <1234> but was: <null>
[ERROR]   ShortValidatorTest>AbstractNumberValidatorTest.testFormat:90 DE Locale, DE Format ==> expected: <1.234,5> but was: <1,234.5>
[ERROR]   ShortValidatorTest.testShortValidatorMethods:122 validate(A) locale ==> expected: <12345> but was: <null>
[ERROR]   ShortValidatorTest>AbstractNumberValidatorTest.testValidateLocale:196 DE Locale, DE Format ==> expected: <1234> but was: <null>
[ERROR]   TimeValidatorTest.testFormat:190 Format default ==> expected: <4:49 PM> but was: <16:49>
[ERROR]   TimeValidatorTest.testLocaleValid:215 validate() 0 value=[23:59] failed  ==> expected: not <null>
[ERROR]   TimeValidatorTest.testTimeZone:263 default result ==> expected: not <null>
[ERROR] Errors:
[ERROR]   CalendarValidatorTest.testCalendarValidatorMethods:115 NullPointer Cannot invo...
[INFO]
[ERROR] Tests run: 573, Failures: 33, Errors: 1, Skipped: 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  34.053 s
[INFO] Finished at: 2025-06-11T20:24:28Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.3:test (default-test) on project commons-validator: There are test failures.
[ERROR]
[ERROR] Please refer to /<<PKGBUILDDIR>>/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
dh_auto_test: error: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<PKGBUILDDIR>> -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<PKGBUILDDIR>>/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<PKGBUILDDIR>>/debian -Dmaven.repo.local=/<<PKGBUILDDIR>>/debian/maven-repo --batch-mode test returned exit code 1
make: *** [debian/rules:4: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
---------------

#1108576#10
Date:
2026-02-03 00:11:17 UTC
From:
To:
Dear Maintainers,

Would it be possible to consider the MR[1] as a proposed solution for
this issue.

Best regards,
Vladimir.

[1] https://salsa.debian.org/java-team/libcommons-validator-java/-/merge_requests/7

#1108576#19
Date:
2026-10-14 14:52:08 UTC
From:
To:
Hello,

Bug #1108576 in libcommons-validator-java reported by you has been fixed in the
Git repository and is awaiting an upload. You can see the commit
message below and you can check the diff of the fix at:

https://salsa.debian.org/java-team/libcommons-validator-java/-/commit/4ce7e7adb7d249f2c0fd03a4b2eea2a9e477ca44
------------------------------------------------------------------------
d/p/02-Locale-dependent-tests-calculate-expected-results-as.patch: Update test assertions to resolve Java 25 ftbfs (Closes: #1108576).
------------------------------------------------------------------------

(this message was generated automatically)
-- 
Greetings

https://bugs.debian.org/1108576

#1108576#26
Date:
2026-10-14 15:08:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
libcommons-validator-java, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1108576@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Emmanuel Bourg <ebourg@apache.org> (supplier of updated libcommons-validator-java package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Wed, 14 Oct 2026 15:24:35 +0200
Source: libcommons-validator-java
Architecture: source
Version: 1:1.9.0-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Changed-By: Emmanuel Bourg <ebourg@apache.org>
Closes: 1108576
Changes:
 libcommons-validator-java (1:1.9.0-2) unstable; urgency=medium
 .
   [ Vladimir Petko ]
   * Calculate the expected results of the locale dependent tests
     (Closes: #1108576)
Checksums-Sha1:
 bcad84f7c880d29b88bb3f123d1e9c37c3773103 2411 libcommons-validator-java_1.9.0-2.dsc
 413550bae7636663ca507676db8cb84339aa87db 11752 libcommons-validator-java_1.9.0-2.debian.tar.xz
 65e364589f7d9e4d8986b106689972cc62b427cb 19023 libcommons-validator-java_1.9.0-2_source.buildinfo
Checksums-Sha256:
 8dfb0f5942d09f09303e6b66985805db8b3e65ccbb8ae59df36e7e3e747558c0 2411 libcommons-validator-java_1.9.0-2.dsc
 74127623796dc33cdd98783e5db8833e6524a550cb426aaf39ec443a7a4a8b56 11752 libcommons-validator-java_1.9.0-2.debian.tar.xz
 6d4440e3946de2da3568e7eef72e76c10c38725d2c1ab46c087211a3132cd503 19023 libcommons-validator-java_1.9.0-2_source.buildinfo
Files:
 ac46dcabc17fdf5a06c411a2146b817e 2411 java optional libcommons-validator-java_1.9.0-2.dsc
 8e7877c9c23e4e0d9ba1185dc1e9932a 11752 java optional libcommons-validator-java_1.9.0-2.debian.tar.xz
 6b040a16f76921f8663b1e3ffa0f8f5a 19023 java optional libcommons-validator-java_1.9.0-2_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJGBAEBCgAwFiEEuM5N4hCA3PkD4WxA9RPEGeS50KwFAmrPlxESHGVib3VyZ0Bh
cGFjaGUub3JnAAoJEPUTxBnkudCs+MwP/0d2Dq3tXDB8E5Bj+CobnMi+gQ548/V8
f3rLz06LZtzW2JxSa3mnzlzA93cDrP9e4K8MWwb5aur/BJkXORjTim+nwEAWgiUc
+JNeVvlYptjaCEVAb7gY1h7ihnXEZGjNiBhuf5jxFsPP12enpfZYoJdJd6jkoOhu
iaO6ZeYUapkJx0wXPLBcyBtcXcHn6MekQ3CXPh76Q8B1AgE2xC9mzxr/byl122P7
34pP1rfbtIDHYGIwJNIdwkBqEiZOjApWGfeO1Eg6hOGYGKr5utc0LRVH8aO336b1
fBzda4QK149ct2Nbtdest/nmYnvFK+AbmaQOpzbbdpmYLWIxTGcQjeFAsm+/cuRP
FjLnsazR6IpM9yFv+WkdBAQMBLUg7Nwia/8/bYs3Z/SpjPHs8J+B2IAWzixhVdQn
RapT/4KwlQjDg9N+XEE8gumfza0TObZFsUXPshyYMt1D/UlDkbHDI5bSGayc6kRk
LpU1OnDJ+ypY5UI1QHddbcrS8MMzwMJLiHq+0DFzY6VDELo7iqbLVCxtH1ktvmmO
G3oWtk3EyKuHGcEcySjPp542rSVUrxO6s9mAAUIxnnDq+0svWcDfgce9sJ0USJyw
v8U/2V43iyIzgoZfTdtMARDvbKqL2RWc9KeC9x71htg5UYvdHhUSz5PM5KuPo9Za
oQA4vnseiHX/
=Ur/o
-----END PGP SIGNATURE-----