-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8366837: Clean up gensrc by spp.Spp #27078
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
base: master
Are you sure you want to change the base?
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. |
I have verified that the generated java source code in gensrc is byte-by-byte identical with and without this patch. That is really all that is needed in terms of correctness, but to make sure I do not run into some unexpected problem I am also running a confirmation round on our internal CI. |
Hm, something is messing up the command lines on the GHA hosts. Funny, I did not see it when testing elsewhere. I'll look into it. |
For the record: the changes in the X-Coder template means that additional empty lines will be inserted in the generated source. This has no real effect on anything substantial, but it means that line numbers change, which make a complete byte-by-byte comparison fail for anything that is dependent on these classes. |
This has passed Oracle internal CI testing for "builds-infra" tier 1-5. |
Several java classes in java.base is generated from templates using SPP, the "Stream Preprocessor". Unfortunately much of this code is very old and has survived unchanged since pre-JDK 7. It does not follow modern makefile standards for abstraction, safe coding practices, etc. In short, they have been a thorn in the side for a long time, and the time has finally come to clean them up.
Progress
Issue
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/27078/head:pull/27078
$ git checkout pull/27078
Update a local copy of the PR:
$ git checkout pull/27078
$ git pull https://git.openjdk.org/jdk.git pull/27078/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 27078
View PR using the GUI difftool:
$ git pr show -t 27078
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/27078.diff
Using Webrev
Link to Webrev Comment