Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore errors parsing classpath #149

Open
wants to merge 2 commits into
base: crac
Choose a base branch
from

Conversation

rvansa
Copy link
Collaborator

@rvansa rvansa commented Dec 15, 2023

This test is relevant mostly on Windows - trying to use URI in the form of file:/C:/path/to/... as classpath element. On Linux, this is parsed as two items as File.pathSeparator is :. However on Windows the second colon triggers an exception.


Progress

  • Change must not contain extraneous whitespace

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/crac.git pull/149/head:pull/149
$ git checkout pull/149

Update a local copy of the PR:
$ git checkout pull/149
$ git pull https://git.openjdk.org/crac.git pull/149/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 149

View PR using the GUI difftool:
$ git pr show -t 149

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/crac/pull/149.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Dec 15, 2023

👋 Welcome back rvansa! A progress list of the required criteria for merging this PR into crac will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk
Copy link

openjdk bot commented Dec 15, 2023

@rvansa This change now passes all automated pre-integration checks.

ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details.

After integration, the commit message for the final commit will be:

Ignore errors parsing classpath

You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed.

At the time when this comment was updated there had been 1 new commit pushed to the crac branch:

Please see this link for an up-to-date comparison between the source branch of this pull request and the crac branch.
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details.

➡️ To integrate this PR with the above commit message to the crac branch, type /integrate in a new comment.

@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Dec 15, 2023
@mlbridge
Copy link

mlbridge bot commented Dec 15, 2023

Webrevs

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 12, 2024

@rvansa This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

CLASSPATH_ENTRIES[i] = new File(items[i]).toPath();
} catch (Exception e) {
// Ignore any exception parsing the path: URLClassPath.toFileURL() ignores IOExceptions
// as well, here we might get InvalidPathException
Copy link
Contributor

Choose a reason for hiding this comment

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

I think CLASSPATH_ENTRIES[i] will remain null in such case and later code in this file accesses it without a null check. But I haven't tried to reproduce it on Windows.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Correct, I need to push an update to this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Updated, with improved test.

@bridgekeeper
Copy link

bridgekeeper bot commented Mar 15, 2024

@rvansa This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

@bridgekeeper bridgekeeper bot closed this Mar 15, 2024
@rvansa
Copy link
Collaborator Author

rvansa commented Mar 18, 2024

/open

@openjdk openjdk bot reopened this Mar 18, 2024
@openjdk
Copy link

openjdk bot commented Mar 18, 2024

@rvansa This pull request is now open

@bridgekeeper
Copy link

bridgekeeper bot commented Apr 15, 2024

@rvansa This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@rvansa
Copy link
Collaborator Author

rvansa commented Apr 17, 2024

/open

@openjdk
Copy link

openjdk bot commented Apr 17, 2024

@rvansa This pull request is already open

@bridgekeeper
Copy link

bridgekeeper bot commented May 15, 2024

@rvansa This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Pull request is ready to be integrated rfr Pull request is ready for review
2 participants