Skip to content
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

Use jline bundle built against Java 8 #10889

Merged
merged 2 commits into from
Oct 21, 2024
Merged

Conversation

sideeffffect
Copy link
Contributor

@sideeffffect sideeffffect commented Oct 15, 2024

The default jline bundle contains classes built against Java 22, which is causing unnecessary issues.

related:

@scala-jenkins scala-jenkins added this to the 2.13.16 milestone Oct 15, 2024
@som-snytt
Copy link
Contributor

scala/bug#12994 (comment)

I haven't looked yet, but the comment at the end of that ticket says jline just fields the UnsupportedClassVersionError.

I wonder if jline should be a multi-release jar. Is a tool justified in assuming it can load a class file that is not versioned? The service loader shouldn't even see the class.

@SethTisue
Copy link
Member

SethTisue commented Oct 16, 2024

@som-snytt thanks for surfacing scala/bug#12994 — I'd forgotten about it

the JLine ticket with the most informative discussion is jline/jline3#937

@sideeffffect what symptoms are you seeing that show the need for this, what are the "unnecessary issues" you refer to? this is only the second complaint we've received, even though Scala 2.13.14 came out six months ago. what is your "pipeline" doing that is even noticing this?

also, before merging this, I'd want to know what is the potential impact of excluding FFM support. might that make the REPL work less well for some users?

@sideeffffect
Copy link
Contributor Author

excluding FFM support. might that make the REPL work less well for some users

AFAIK we're not using any of this newly introduced functionality. We should be safe to switch to the jdk8 variant 🤞

@SethTisue SethTisue merged commit 40829b8 into scala:2.13.x Oct 21, 2024
4 checks passed
@SethTisue
Copy link
Member

SethTisue commented Oct 21, 2024

thank you! I did not know this existed

@sideeffffect sideeffffect deleted the patch-1 branch October 22, 2024 20:34
WojciechMazur added a commit to scala/scala3 that referenced this pull request Dec 19, 2024
…27.1 (was 3.27.0) (#22205)

as per the https://github.com/jline/jline3 readme
 
and as per discussion and linked items on #22201 

fixes #22201

note that as far as I can tell, the stuff I removed from
libexec/common-shared is dead code

@philwalk dunno if you're still around but judging from #12405 you might
be a good reviewer here

note that I believe we _don't_ need to also port
scala/scala#10889 here, since we are already
using separate JLine JARs rather than the all-in-one JAR

I've chosen not to upgrade all the way to JLine 3.28.0 at the moment, as
it is quite new (2 days ago) and doesn't appear to have any fixes that
might be critical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants