-
Notifications
You must be signed in to change notification settings - Fork 111
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
8327476: Upgrade JLine to 3.26.1 #1413
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back goetz! A progress list of the required criteria for merging this PR into |
@GoeLin 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:
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 8 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
This backport pull request has now been updated with issue from the original commit. |
Indentation looks bad in some commented lines:
(The PR is too large to review it in the GUI.) The 4th Commit is from https://github.com/jline/jline3/archive/refs/tags/jline-parent-3.26.1.tar.gz ? Thanks for splitting the PR into the individual commits! |
Hi, |
Indentation: |
I've compared with https://github.com/jline/jline3/archive/refs/tags/jline-parent-3.26.1.tar.gz and your resolution looks good to me. |
Thanks for looking at this change! |
I can still see |
Ah, I see it only in
So, it seems to be no longer in the windows files. |
|
I think it is unused, and this was cleaned up in the win files, but not in the rest. At least is't nowhere called within jline. |
I backport this change for parity with 21.0.7-oracle.
It brings updates of upstream library jline 3.26.1 to jdk21.
Jdk21 currently includes jline 3.22.0, see JDK-8297587.
The original sources of jline 3.26.1 can be found here:
https://github.com/jline/jline3/archive/refs/tags/jline-parent-3.26.1.tar.gz
The backport of this change needed larger adaptions.
The original jline library dynamically selects how to access
the operating system in two means:
The implementation in OpenJDK does this selection at JDK build time.
The code is split into more subdirectories for the operating systems.
One of the methods to call native is picked, the code for the others
is removed. Unfortunately this differs for the JDK releases:
The original patch of this change includes all the edits to
replace jna by ffm.
Further changes that fell into the eye during the backport
arguments to methods are listed.
Stream
enum fromTerminalProvider.java
and moved itinto a class of its own:
SystemStream.java
. This makes changes toimport statements and argument lists necessary.
inputStreamWrapper
to thefunctions which are also affected by the
Stream
enum change.This also made changes to import statements and argument lists
necessary.
OpenJDK 23 added jline to the list of modules needed for a jre.
I don't think we should do that in 21, so I omitted that change.
jline 3.26.1 and OpenJDK 23 added a new method
systemStreamWidth()
toTerminalProvider
.I don't think we should extend the functionlaity of jline in 21,
so I omitted this. Also, I would need additional parts of the
jline windows files that are not yet included in OpenJDK to
implement this.
For the backport, I dropped the following files from the patch:
Also, I did not remove the following files as the original change did:
I added the changes for the new parameter "
inputStreamWrapper
" in the jna files.I patched all differences between jline 3.22.0 and 3.26.1 into the jna files
that were deleted in the original change for jdk23, as far as there is a direct
relation between OpenJDK 21 and upstream jline.
I split the changes needed on top of the origin patch into several commits.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk21u-dev.git pull/1413/head:pull/1413
$ git checkout pull/1413
Update a local copy of the PR:
$ git checkout pull/1413
$ git pull https://git.openjdk.org/jdk21u-dev.git pull/1413/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1413
View PR using the GUI difftool:
$ git pr show -t 1413
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk21u-dev/pull/1413.diff
Using Webrev
Link to Webrev Comment