Skip to content

Create separate file systems for jars during classpath scanning - #6143

Open
marcphilipp wants to merge 6 commits into
mainfrom
marc/file-system-classpath-scanning
Open

marcphilipp wants to merge 6 commits into
mainfrom
marc/file-system-classpath-scanning

Conversation

@marcphilipp

@marcphilipp marcphilipp commented Oct 9, 2026 •

Copy link
Copy Markdown
Member
  • Create separate file systems for jar files in default file system
  • Avoid calling FileSystems.newFileSystem(URI, Map)
  • Fix URL path decoding
  • Update release note entry

I hereby agree to the terms of the JUnit Contributor License Agreement.


Definition of Done

@marcphilipp marcphilipp self-assigned this Oct 9, 2026
@testlens-app

testlens-app Bot commented Oct 9, 2026

Copy link
Copy Markdown

✅ All tests passed ✅

🏷️ Commit: 2dd6d02
▶️ Tests: 45157 executed
⚪️ Checks: 15/15 completed


Learn more about TestLens at testlens.app/docs.

@mpkorstanje
mpkorstanje self-requested a review October 9, 2026 16:00
var path1 = CloseablePath.create(jarUri(original));
paths.add(path1);
var path2 = CloseablePath.create(uri);
var path2 = CloseablePath.create(jarUri(original));

@mpkorstanje mpkorstanje Oct 9, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Does this test need two closable paths? We've already established they're independent in createsSeparateFileSystemsForJarFilesOnNonDefaultFileSystem

paths.add(path2);

assertThrows(FileSystemNotFoundException.class, () -> FileSystems.getFileSystem(jarUri(original)),
"Uses separate file systems");

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This is also established in createsSeparateFileSystemsForJarFilesOnNonDefaultFileSystem

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FileSystemAlreadyExistsException when build tool uses resources in JARs rather than plain files

2 participants