Skip to content

Conversation

justin-curtis-lu
Copy link
Member

@justin-curtis-lu justin-curtis-lu commented Aug 28, 2025

This PR is a cleanup change which replaces anchor element references of the Locale def_locale_extension section with the Javadoc link tag. This is a doc only change and is a result of the discussion in the PR of #26683.

This includes one additional conversion of the legacy_language_codes section to get rid of all Locale.html anchor element references.


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-8365175: Replace Unicode extension anchor elements with link tag (Bug - P4)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 26996

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Aug 28, 2025

👋 Welcome back jlu! 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

openjdk bot commented Aug 28, 2025

@justin-curtis-lu 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:

8365175: Replace Unicode extension anchor elements with link tag

Reviewed-by: liach, iris, naoto

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 32 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
Copy link

openjdk bot commented Aug 28, 2025

@justin-curtis-lu The following labels will be automatically applied to this pull request:

  • 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 core-libs core-libs-dev@openjdk.org i18n i18n-dev@openjdk.org rfr Pull request is ready for review labels Aug 28, 2025
@mlbridge
Copy link

mlbridge bot commented Aug 28, 2025

Webrevs

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Aug 28, 2025
Copy link
Member

@naotoj naotoj left a comment

Choose a reason for hiding this comment

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

Thanks for the cleanup!

@@ -1647,7 +1647,7 @@ public static Calendar getInstance(TimeZone zone)
* in the default time zone with the given locale.
* <p>
* If the locale contains the time zone with "tz"
* <a href="Locale.html#def_locale_extension">Unicode extension</a>,
* {@link Locale##def_locale_extensionUnicode extension},
Copy link
Member

Choose a reason for hiding this comment

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

Needs a space

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Aug 28, 2025
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Aug 28, 2025
@@ -101,8 +101,8 @@
* </blockquote>
*
* <p>If the specified locale contains "ca" (calendar), "rg" (region override),
* and/or "tz" (timezone) <a href="../util/Locale.html#def_locale_extension">Unicode
* extensions</a>, the calendar, the country and/or the time zone for formatting
* and/or "tz" (timezone) {@link Locale##def_locale_extension Unicode
Copy link
Member

Choose a reason for hiding this comment

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

{@link} renders in code font. Is that intended? You can use {@linkplain} for plain font.

Copy link
Member Author

Choose a reason for hiding this comment

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

You are right, these would be better as linkplain tags. Updated as such.

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Aug 29, 2025
@@ -2667,7 +2667,7 @@ private AvailableCalendarTypes() {
* @return the LDML-defined calendar type or the class name of this
* {@code Calendar} instance
* @since 1.8
* @see <a href="Locale.html#def_extensions">Locale extensions</a>
* @see Locale##def_locale_extension Locale extensions
Copy link
Member

Choose a reason for hiding this comment

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

This will be handled as plain text because of space in "Locale extensions" 👍

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Aug 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-libs core-libs-dev@openjdk.org i18n i18n-dev@openjdk.org ready Pull request is ready to be integrated rfr Pull request is ready for review
Development

Successfully merging this pull request may close these issues.

4 participants