Apache OpenOffice (AOO) Bugzilla – Issue 128455
update JUnit4 from 4.12 to latest 4.13.2
Last modified: 2021-06-05 01:31:07 UTC
Issue to track work on updating JUnit from 4.12 to latest JUnit4 4.13.2. Previous updating from 4.10 to 4.12 was under issue 128452 [1]. This update will require changes to NamedRequest.java [2] due to a change in JUnit 4.13 ParentRunner.java [3] where a second constructor was added which now throws an error when instantiating the inner class Suite with a null arg. [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. [1] https://bz.apache.org/ooo/show_bug.cgi?id=128452 [2] https://github.com/apache/openoffice/blob/trunk/test/testcommon/source/org/openoffice/test/common/NamedRequest.java [3] https://github.com/junit-team/junit4/blob/main/src/main/java/org/junit/runners/ParentRunner.java
committed 5249608 https://github.com/apache/openoffice/commit/524960808c609f1c38825c5c9f71b024b727be45