-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
JDK 24: REPL prints warning on startup about JLineNativeLoader
#22756
Comments
it will still work, it's just printing warnings — two different ones — both of which you can safely ignore the for the JLine one we have a Scala 2 ticket at scala/bug#13030. but it's good to have a Scala 3 ticket as well, thank you. I've changed the title of this ticket to just be about the JLine warning. there are some remarks on the Scala 2 ticket about what the root cause is and what's needed to address it |
JLineNativeLoader
Thanks for the info Seth. I note #9013 says "problematic for various reasons (e.g. usage of a security manager, using Graal Native (#13985)).", I don't think that's an issue any more, my app is built using Native Image and I don't see that problem. However, unfortunately these warnings are deal-breakers for me, I'm shipping a CLI utility that will require JDK24 for its next release and I can't have it spewing warnings when it runs. What I haven't figured out is if it's possible to suppress the warnings. |
You shouldn't see the JLine one; that’s specific to the REPL. (Whether you'll see the |
I've confirmed that the JLine one only seems to affect the REPL. I think I've found a workaround for the LazyVal warning, I'll add a note to #9013. |
This seems to suppress the warnings for the REPL:
Well, sort of works - I'm not sure where the |
I wouldn't expect that you'd need to go through |
This seems to work, just providing the single flag above doesn't:
|
Oh, weird! I was testing on JDK 25, where I see:
Not sure how to account for the difference, unless it's the 24 vs 25 thing. (I don't have a 24 installation easily accessible at the moment.) |
Yeah, weird indeed. But if there's one way that works for 24 and a different way for 25, that's probably good enough for now :-) |
@SethTisue I do not think it's a Scala CLI issue, the options seem to be passed correctly... let me know if there's reason to think otherwise. Might be a JDK 24 vs JDK 25 thing, indeed. |
:
According to https://docs.scala-lang.org/overviews/jdk-compatibility/overview.html, Scala 3.6.4 is compatible with Java 24, yet:
The text was updated successfully, but these errors were encountered: