-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8367859: Remove shell script from nio exception gensrc #27338
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
|
👋 Welcome back ihse! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
Some implementation notes: I considered writing a Java buildtool to read the existing The I consider this an improvement, not a bug. I also discovered a real bug. Due to how the old instead of (the intended, and correct) That is fixed with this PR. Apart from these changes, the generated files are identical before and after this PR. |
|
I don't understand what is going on with GHA. It works perfectly well on my local computer and Oracle's internal CI system. |
The answer to that is "GNU Make 4.3 is going on". I have a tentative fix... |
|
I really dislike this. Can you please look at putting a template in java.nio.channels and java.nio.charsets for the exceptions in those packages? There will be a naming discussion to have on this too. Same thing for CharsetNameExceptions.java.template. Alternatively, maybe we should just check in the exceptions in the src tree and avoid this. @naotoj @bplb, can you provide some opinion on this? |
|
/reviewers 2 reviewer |
|
@AlanBateman |
|
I'm glad to hear you say that. That was my initial thinking also, but since it was not done that way originally, I thought it would not be acceptable. I think that is a much better solution. I'll create a new PR with checked-in code, but I'll keep this open for the time being, if it turns out a generated solution is preferred. |
|
See #27352. |
I concur. Given that the only change since JDK 8 is this these are pretty stable. |
The only remaining shell script that is being used in the gensrc phase to generate Java code is for the nio exceptions. This should be removed as well, and replaced with a standard solution (Java buildtool or makefile API calls).
Progress
Integration blocker
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27338/head:pull/27338$ git checkout pull/27338Update a local copy of the PR:
$ git checkout pull/27338$ git pull https://git.openjdk.org/jdk.git pull/27338/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27338View PR using the GUI difftool:
$ git pr show -t 27338Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27338.diff
Using Webrev
Link to Webrev Comment