Skip to content

Conversation

graalvmbot
Copy link
Collaborator

Updates the attach API from JDK-24+18 to JDK-25+18 (except for any functionality related to version 2 and streaming, which are both not supported at the moment).

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 15, 2025
Copy link
Collaborator

@roberttoyonaga roberttoyonaga left a comment

Choose a reason for hiding this comment

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

This looks good to me! Thanks @christianhaeubl


int optionStart = nameAndOptions.indexOf(' ');
if (optionStart != -1) {
name = nameAndOptions.substring(0, optionStart);
Copy link
Collaborator

@roberttoyonaga roberttoyonaga Apr 15, 2025

Choose a reason for hiding this comment

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

It doesn't hurt to do this check, but I think we could also just assume there will never be any options specified by the client. Because at this point it has already asked the server "getversion" and knows it doesn't support options, so it shouldn't supply any. We could possibly even return a "not supported" warning message if we somehow end up in this branch.

Copy link
Member

Choose a reason for hiding this comment

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

Good point - I will probably keep the check for now though (it makes the diff against HotSpot a bit smaller).

@graalvmbot graalvmbot closed this Apr 18, 2025
@graalvmbot graalvmbot merged commit a1e8fe6 into master Apr 18, 2025
3 of 13 checks passed
@graalvmbot graalvmbot deleted the chaeubl/GR-64209 branch April 18, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants