-
Notifications
You must be signed in to change notification settings - Fork 219
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
Cannot user jline3 uber jar rewrapped in other jars because of jfr usage. #937
Comments
we tried to upgrade it here: we downgraded to 2.24, but it's missing native libraries apparently. |
hmmm.. I just tried with JDK 21:
|
It seems there's some graalvm specific incubating feature on 2.25. |
If you depends on the JLine uber-jar ( |
@gnodet I can do that, but this "new incubating" dependency should be an extra jar IMO, not part of the default usage. |
@gnodet can you use this JIRA to place jline-terminal-ffm outside of the uber jar? and have anyone needing this feature just use that JAR? |
I renamed this as this issue will affect anyone using the uber jar. as it's affecting any jdk |
I don't have a problem removing it from the JLine bundle if the source of the problem is that the code targets the JDK 21 preview (with class file version xxx.65535). However, it may come back whenever the preview mode for FFM is removed, which should be in JDK 22, coming out soon. |
What do you mean it's affecting any JDK ? The provider is optional, so I think it's perfectly usable. It's just that the mavne-plugin-plugin does check the class version to find out the minimum requirement. |
I'm not using the feature at all.. I just have a depency on org.jline from artemis.. and that was enough for me to hit the issue. if I use the latest org.jline version I can't compile at all. |
you will see this:
All I'm doing is using this through piccocli.jline integration. |
although.. the issue is on my maven plugin wrapping.. let me debug the build there and I will be back here with more info. |
I'm sorry about this.. I thought this was something else.. let me debug this a bit more.. will come back with more details. |
the issue is that I have a maven-plugin that uses my CLI, and the CLI has a dependency on the jline.. .maven plugin is doing a rewrapping of the jar, what's hitting that issue. I didn't need jline on the maven plugin so I am making picocli and jline as provided. but it would be nicer if this jfr wasn't part of the uber jar to avoid issues like this. |
I renamed the issue here trying to be more precise on what's the actual issue. |
@gnodet I can't build this even with JDK 21. it only works on the preview. I had to change my code to have my maven plugin ignoring jline. I have a workaround for my project but IMHO you should move this outside of the default jar.. |
I think I’ll provide a new package with |
I think it would be easier to move the JFR usage away from the uber jar. but I'm fine with that. |
…#2571) Fixes #22541 Fixes #24981 Fixes #26354 Closes https://hazelcast.atlassian.net/browse/REL-257 Forwardports https://github.com/hazelcast/hazelcast-mono/pull/2467 Notes: 1. apache/parquet-java@274dc51b has broken `ParquetWriter#close()`. See also: https://issues.apache.org/jira/browse/PARQUET-2496 and apache/parquet-java#2935. 2. Adds `jdk8` classifier to `jline` because it contains classes compiled with Java 22, which breaks the build. See also: jline/jline3#937 (comment). GitOrigin-RevId: 519e71667822b3fd7d2c7cf654f261a8a238d583
It's the proper solution to make the jline bundle JAR a multi-release jar? /cc @som-snytt |
would be possible to set the target to JDK 11 when you build a release?
We use JDK 11 to build artemis, and we just tried to upgrade to jline latest and we had issues:
The text was updated successfully, but these errors were encountered: