Skip to content

8382375: Remove obsolete options from CLDRConverter#30797

Closed
naotoj wants to merge 3 commits intoopenjdk:masterfrom
naotoj:JDK-8382375-Remove-useJava-option-from-CLDRConverter
Closed

8382375: Remove obsolete options from CLDRConverter#30797
naotoj wants to merge 3 commits intoopenjdk:masterfrom
naotoj:JDK-8382375-Remove-useJava-option-from-CLDRConverter

Conversation

@naotoj
Copy link
Copy Markdown
Member

@naotoj naotoj commented Apr 17, 2026

Removing obsolete options/code from CLDRConverter, which is now always emits Java code in UTF-8 encoding.



Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8382375: Remove obsolete options from CLDRConverter (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 30797

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/30797.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper Bot commented Apr 17, 2026

👋 Welcome back naoto! A progress list of the required criteria for merging this PR into master 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
Copy Markdown

openjdk Bot commented Apr 17, 2026

@naotoj 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:

8382375: Remove obsolete options from CLDRConverter

Reviewed-by: jlu, erikj

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 142 new commits pushed to the master 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 master branch, type /integrate in a new comment.

@openjdk openjdk Bot added build build-dev@openjdk.org core-libs core-libs-dev@openjdk.org i18n i18n-dev@openjdk.org labels Apr 17, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 17, 2026

@naotoj The following labels will be automatically applied to this pull request:

  • build
  • core-libs
  • i18n

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk Bot added the rfr Pull request is ready for review label Apr 17, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge Bot commented Apr 17, 2026

Webrevs

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label Apr 17, 2026
formatter.format("\\u%04x", (int)aChar);
} else {
if (specialSaveChars.indexOf(aChar) != -1) {
if (aChar == 0x0022) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

What about using the corresponding char literal ('"') to make it easier to understand what this is escaping?

Suggested change
if (aChar == 0x0022) {
if (aChar == '"') {

(This is only a suggestion; I am not an OpenJDK member, feel free to ignore this comment.)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks. I added a comment explaining it is for ASCII quotation marks

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Thanks, I think it would have been better to replace the 0x0022 with '"' (which would be functionality identical), but I assume you have your reasons why you did not want to do that.

As side note: I just noticed that another possibility would be to merge this " handling with the other escaping logic in the case branches above, specifically case '\\', e.g.:

...
case '\\', '"':
    // Escape the char
    outBuffer.append('\\');
    outBuffer.append(aChar);
    break;
...

Though this was just a suggestion anyway, and this PR is already approved, so feel free to ignore.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'd be happy to incorporate your suggested changes once you've signed the OCA (I assumed you haven't, as you wrote "I am not an OpenJDK member." Please let me know if that's not the case).

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I have not signed the OCA, however

Footnotes

  1. I can't find any publicly available information about this Skara feature (maybe there is OpenJDK-internal though), but there are issues related to it in the bug tracker

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I confirmed that I can accept your suggested changes without signing OCA, and I've incorporated them.

@openjdk openjdk Bot removed the ready Pull request is ready to be integrated label Apr 20, 2026
Copy link
Copy Markdown
Member

@justin-curtis-lu justin-curtis-lu left a comment

Choose a reason for hiding this comment

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

Looks OK to me

@openjdk openjdk Bot added the ready Pull request is ready to be integrated label Apr 20, 2026
@openjdk openjdk Bot removed the ready Pull request is ready to be integrated label Apr 22, 2026
@openjdk openjdk Bot added the ready Pull request is ready to be integrated label Apr 23, 2026
@naotoj
Copy link
Copy Markdown
Member Author

naotoj commented Apr 24, 2026

Thank you for your reviews!
/integrate

@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 24, 2026

Going to push as commit bca6f51.
Since your change was applied there have been 155 commits pushed to the master branch:

Your commit was automatically rebased without conflicts.

@openjdk openjdk Bot added the integrated Pull request has been integrated label Apr 24, 2026
@openjdk openjdk Bot closed this Apr 24, 2026
@openjdk openjdk Bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Apr 24, 2026
@openjdk
Copy link
Copy Markdown

openjdk Bot commented Apr 24, 2026

@naotoj Pushed as commit bca6f51.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build build-dev@openjdk.org core-libs core-libs-dev@openjdk.org i18n i18n-dev@openjdk.org integrated Pull request has been integrated

Development

Successfully merging this pull request may close these issues.

4 participants