-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Fix JvmOptionsParserTests for Java 24 #123013
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
Conversation
| @BeforeClass | ||
| public static void beforeClass() throws IOException { | ||
| Files.createDirectories(ENTITLEMENTS_LIB_DIR); | ||
| Files.createTempFile(ENTITLEMENTS_LIB_DIR, "mock-entitlements-bridge", ".jar"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why does this need the file? The directory is not enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(I'm asking because I'm a bit surprised that it needs the file, but doesn't care about the file's name.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:D funny you asked, you probably removed that difficult phase of the project :)
The name of the jar itself is difficult to predict (with version, snapshot, etc), so the code there test we have exactly one jar in that directory, the name can be anything.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Of course I remember that. I was just testing whether you knew. 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Create "fake" test entitlement libs dir and jar to pass validation