Issue 128455 - update JUnit4 from 4.12 to latest 4.13.2
Summary: update JUnit4 from 4.12 to latest 4.13.2
Status: RESOLVED FIXED
Alias: None
Product: QA
Classification: Unclassified
Component: framework (show other issues)
Version: 4.2.0-dev
Hardware: All All
: P5 (lowest) Normal
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact: Carl Marcum
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-30 20:16 UTC by Carl Marcum
Modified: 2021-06-05 01:31 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Latest Confirmation in: 4.1.10
Developer Difficulty: Medium


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Carl Marcum 2021-05-30 20:16:37 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