Skip to content

Reduce number of logged warnings for type implementing CloseableResource but not AutoCloseable #4776

@norrisjeremy

Description

@norrisjeremy

Starting with the 5.13 release, JUnit now spams the following warning hundreds of times per build:

WARNING: Type implements CloseableResource but not AutoCloseable

We use the Testcontainers framework in JSch.

This can be seen in our Github Actions build logs, as seen here for example.

Steps to reproduce

Use Testcontainers extension and note how it spams the warning hundreds of times per build.

Context

  • Used versions (Jupiter/Vintage/Platform): 5.13.3
  • Build Tool/IDE: Maven

Deliverables

  • Reduce logging to once per CloseableResource implementation class

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions