Skip to content

Avoid producing a trailing colon in java.class.path.#3365

Open
cpovirk wants to merge 1 commit into
apache:masterfrom
cpovirk:trailing-colon
Open

Avoid producing a trailing colon in java.class.path.#3365
cpovirk wants to merge 1 commit into
apache:masterfrom
cpovirk:trailing-colon

Conversation

@cpovirk
Copy link
Copy Markdown

@cpovirk cpovirk commented May 29, 2026

This is more consistent with how java -cp ... operates:

If I run...

java -cp somejar:

...then Java sees a trailing empty path, i.e., "the current directory."

But Surefire includes a trailing colon in all cases --
even when the current directory is not on the class path.

This behavior contributed to google/guava#8295

Following this checklist to help us incorporate your
contribution quickly and easily:

  • Each commit in the pull request should have a meaningful subject line and body.
  • Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
  • Run mvn clean install to make sure basic checks pass. A more thorough check will
    be performed on your pull request automatically.
  • You have run the integration tests successfully (mvn -Prun-its clean install).

If your pull request is about ~20 lines of code you don't need to sign an
Individual Contributor License Agreement if you are unsure
please ask on the developers list.

To make clear that you license your contribution under
the Apache License Version 2.0, January 2004
you have to acknowledge this by using the following check-box.

This is more consistent with how `java -cp ...` operates:

If I run...

`java -cp somejar:`

...then Java sees a trailing empty path, i.e., "the current directory."

But Surefire includes a trailing colon in all cases --
even when the current directory is not on the class path.

This behavior contributed to google/guava#8295
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant