Skip to content

Conversation

@magicus
Copy link
Member

@magicus magicus commented Sep 17, 2025

An alternative implementation to #27338, which removes the entire gensrc stage and instead permanently checks in the generated Java files.


Progress

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

Issue

  • JDK-8367859: Remove nio exception gensrc (Enhancement - P3)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 27352

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Sep 17, 2025

👋 Welcome back ihse! 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 Sep 17, 2025

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

8367859: Remove nio exception gensrc

Reviewed-by: naoto, erikj, bpb

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 21 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 Sep 17, 2025

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

  • build
  • core-libs
  • nio

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 nio nio-dev@openjdk.org build build-dev@openjdk.org core-libs core-libs-dev@openjdk.org labels Sep 17, 2025
@openjdk openjdk bot added the rfr Pull request is ready for review label Sep 18, 2025
@mlbridge
Copy link

mlbridge bot commented Sep 18, 2025

Webrevs

@AlanBateman
Copy link
Contributor

Can you confirm that tier1 + tier2 are passing? (most of the tests are in tier2).

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.

charset package changes look good to me


/**
* Unchecked exception thrown when a string that is not a
* <a href="Charset.html#names">legal charset name</a> is used as such.
Copy link
Member

Choose a reason for hiding this comment

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

Could utilize new construct as {@linkplain Charset##names legal charset name}

Copy link
Contributor

Choose a reason for hiding this comment

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

I assume Magnus is using the generated classes and I think best to not change anything else with this update. We can follow-up yesterday for "opportunities" to modernize.

Copy link
Member

Choose a reason for hiding this comment

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

OK fair enough. I just noticed that the file was modified, ie.

// -- This file was mechanically generated: Do not edit! -- //

was removed, so.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, I think that has to be removed.

Copy link
Member Author

Choose a reason for hiding this comment

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

Alan is right, I just copied in the generated files. This is the files as generated by my previous PR. See this comment #27338 (comment) for details on how they differ. (Apart from a bug fix it is whitespace and comments only).

In addition to this, jcheck complained about the generated files containing tabs, so I also had to replace those with spaces.

Please go ahead and modernize the code after this PR. :) (But how to do it "yesterday" eludes me ;-))

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 18, 2025
@naotoj
Copy link
Member

naotoj commented Sep 18, 2025

/reviewers 2

@openjdk
Copy link

openjdk bot commented Sep 18, 2025

@naotoj
The total number of required reviews for this PR (including the jcheck configuration and the last /reviewers command) is now set to 2 (with at least 1 Reviewer, 1 Author).

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Sep 18, 2025
@openjdk openjdk bot added the ready Pull request is ready to be integrated label Sep 18, 2025
Copy link
Member

@bplb bplb left a comment

Choose a reason for hiding this comment

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

Looks all right.

@magicus
Copy link
Member Author

magicus commented Sep 19, 2025

Can you confirm that tier1 + tier2 are passing? (most of the tests are in tier2).

Yes, they pass with flying colors.

@magicus
Copy link
Member Author

magicus commented Sep 19, 2025

/integrate

@openjdk
Copy link

openjdk bot commented Sep 19, 2025

Going to push as commit 65aea48.
Since your change was applied there have been 35 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 Sep 19, 2025
@openjdk openjdk bot closed this Sep 19, 2025
@openjdk openjdk bot removed ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 19, 2025
@openjdk
Copy link

openjdk bot commented Sep 19, 2025

@magicus Pushed as commit 65aea48.

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

@magicus magicus deleted the remove-genExceptions.sh-alternate branch September 19, 2025 13:02
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 integrated Pull request has been integrated nio nio-dev@openjdk.org

Development

Successfully merging this pull request may close these issues.

5 participants