On Mon, 2025-04-28 at 17:38 +0200, Emmanuel Bourg wrote: > On 28/04/2025 16:22, Ben Hutchings wrote: > > > It turns out that it is possible to do this from the slf4j side, by > > replacing the Slf4jLogFactory class. See the attached patch. With > > the patch applied and libsurefire-java downgraded, the tests pass. > > Slf4jLogFactory is called from LogFactory which is already replaced by > slf4j, so I don't think replacing Slf4jLogFactory if useful if > jcl-over-slf4j is already on the classpath. [...]
There are 2 different class names, differing only in capitalisation: 1. SLF4JLogFactory: defined in jcl-over-slf4j 2. Slf4jLogFactory: defined in commons-logging since 1.3.0 This adds a replacement for (2) to slf4j-jcl to break the recursion. Ben. -- Ben Hutchings If more than one person is responsible for a bug, no one is at fault.
signature.asc
Description: This is a digitally signed message part