Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

tillsc
Copy link
Contributor

@tillsc tillsc commented Jul 15, 2025

Avoid IllegalArgumentException from new URI(...) by using getRawSchemeSpecificPart() to preserve correct escaping (e.g., for spaces in Program Files).
This occurred for example when running java -jar "my_app.war" -S rake -T under windows.

I left this.path unchanged because it's unclear what other parts of the code expect there.
Instead, I extract a separate pathWithoutMain for URI construction.

@olleolleolle olleolleolle merged commit c45992c into jruby:master Jul 24, 2025
3 of 6 checks passed
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.

3 participants