Apache OpenOffice (AOO) Bugzilla – Issue 128452
update JUnit4 from 4.10 to latest 4.12
Last modified: 2021-05-31 20:36:29 UTC
release notes and latest version can be found here: https://junit.org/junit4/
Updating to junit 4.11 requires adding the hamcrest jar to the classpath also. It seem we can use the latest Hamcrest 2.2 release. Also testing has shown we can update junit to 4.12 without issues. Updating to 4.13 throws an error. [javac] <path-to>/openoffice/test/testcommon/source/org/openoffice/test/common/NamedRequest.java:161: error: reference to ParentRunner is ambiguous, both constructor ParentRunner(Class<?>) in ParentRunner and constructor ParentRunner(TestClass) in ParentRunner match [javac] super(null); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] 1 error [javac] 1 warning BUILD FAILED /home/carl/dev-git/openoffice/test/build.xml:80: Compile failed; see the compiler error output for details.
changed target version to 4.12. I will create a separate issue for moving to 4.13.x as this is more involved than libraries and dependencies. There are deeper modifications needed that will be described there.
submitted PR-130 https://github.com/apache/openoffice/pull/130
work on JUnit 4.13.2 moved to issue 128455 https://bz.apache.org/ooo/show_bug.cgi?id=128455
committed in: https://github.com/apache/openoffice/commit/069226d344055623fb554fac841132ecefce563a