Bugfix: Java 25 broke test by cstamas · Pull Request #1657 · apache/maven-resolver

Skip to content

Navigation Menu

Sign in

Appearance settings

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@cstamas

Copy link Copy Markdown

Member

@cstamas cstamas commented

Nov 14, 2025

As test was naively using new File("") assuming its method file.list() will return null on cleanup in teardown() method.

But, it turns out it was an old Java bug fixed in
Java 25, and once GH matrix got Java 25 introduced, it broke the build.

Refs:

Thanks to @sormuras

As test was naively using `new File("")` assuming its
method `file.list()` will return `null` on cleanup
in `teardown()` method.

But, it turns out it was an old Java bug fixed in
Java 25, and once GH matrix got Java 25 introduced,
it broke the build.

Refs:
* https://bugs.openjdk.org/browse/JDK-8024695
* https://inside.java/2025/11/03/quality-heads-up/

Thanks to @sormuras

@cstamas cstamas self-assigned this

Nov 14, 2025
Copy link Copy Markdown

@sormuras sormuras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@cstamas cstamas marked this pull request as ready for review

November 14, 2025 16:42

@cstamas cstamas merged commit 3af2e42 into apache:maven-resolver-1.9.x

Nov 14, 2025

17 checks passed

@cstamas cstamas deleted the maven-resolver-1.9.x-java25 branch

November 14, 2025 17:18

@github-actions

Copy link Copy Markdown

@cstamas Please assign appropriate label to PR according to the type of change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@sormuras sormuras sormuras approved these changes

@slawekjaranowski slawekjaranowski Awaiting requested review from slawekjaranowski

Assignees

@cstamas cstamas

Projects

None yet

Milestone

1.9.25

Development

Successfully merging this pull request may close these issues.

2 participants

@cstamas @sormuras