-
Notifications
You must be signed in to change notification settings - Fork 231
8313815: The exception messages printed by jcmd ManagementAgent.start are corrupted on Japanese Windows #1641
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
… are corrupted on Japanese Windows
|
👋 Welcome back yukikimmura! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
/label serviceability |
|
@plummercj |
|
We have the following in agent.properties: and it is used by: Shouldn't "Agent already started" also be text that we should localize in the properties files? If we did, I think this issue would go away. Since the above is the only reference to INVALID_STATE, we could just instead have: |
|
/label add serviceability |
|
@dcubed-ojdk |
|
Hello Chris, Thanks, |
|
If you are going to go with the localization of "Agent already started" approach, it should probably be done in 22 and then backported. If you want to just go with your current fix, that's ok to. |
|
Hello Chris, I think your suggestion is to set a localized exception message or the English message to the RuntimeException. I prefer to modify jcmd (HotSpotVirtualMachine.java) for two reasons. I believe it's not necessary to fix JDK22 as this issue doesn't occur owing to JEP 400. Thanks, |
kevinjwalls
left a comment
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.
OK, looks good to me. 8-)
|
Hello Chris, I would like to go with the current fix, as I replied to your comment. Thanks, |
|
Hello everyone, Is there anything left for me to do to get the fix integrated? Thanks, |
|
Yes that sounds good. I think you can /integrate and we can /sponsor if that is needed. |
|
/integrate Thank you for your quick reply. Thanks, |
|
@yukikimmura This pull request has not yet been marked as ready for integration. |
|
/sponsor |
|
@kevinjwalls The change author (@yukikimmura) must issue an |
|
I'm very sorry, I typed "integrate" before being marked as ready for integration. Thanks, |
|
Yes of course. On the jbs entry, I think that should have been a jdk17u-fix-request label, so I updated it. |
|
@yukikimmura 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: 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 29 new commits pushed to the
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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@kevinjwalls, @plummercj, @phohensee) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
/integrate |
|
@yukikimmura |
|
/sponsor |
|
Going to push as commit 7286bb8.
Your commit was automatically rebased without conflicts. |
|
@phohensee @yukikimmura Pushed as commit 7286bb8. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
|
/backport jdk11u-dev |
|
@yukikimmura To use the |
|
/backport jdk11u-dev |
|
@yukikimmura the backport was successfully created on the branch yukikimmura-backport-7286bb85 in my personal fork of openjdk/jdk11u-dev. To create a pull request with this backport targeting openjdk/jdk11u-dev:master, just click the following link: The title of the pull request is automatically filled in correctly and below you find a suggestion for the pull request body:
If you need to update the source branch of the pull then run the following commands in a local clone of your personal fork of openjdk/jdk11u-dev: |
I would like to fix this issue
because users can not read the exception message of jcmd ManagementAgent on localized Windows platform and can not understand what happened.
Testing:
all serviceability area tests jdk_svc, and a specific test to verify the fix.
Could anyone review the fix please?
Thanks,
Kimura Yukihiro
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk17u-dev.git pull/1641/head:pull/1641$ git checkout pull/1641Update a local copy of the PR:
$ git checkout pull/1641$ git pull https://git.openjdk.org/jdk17u-dev.git pull/1641/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1641View PR using the GUI difftool:
$ git pr show -t 1641Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk17u-dev/pull/1641.diff
Webrev
Link to Webrev Comment