Skip to content

Picocli extension not compatible with Java 24 #48882

@holly-cummins

Description

@holly-cummins

Describe the bug

To reproduce, install a starter app from code.quarkus, and then

sdk install java 24-tem
sdk use java 24-tem
quarkus ext add picocli
quarkus dev

It gives:

2025-07-11 12:29:53,629 INFO  [io.quarkus] (Quarkus Main Thread) code-with-quarkus stopped in 0.006s
Exception in thread "executor-thread-1" java.lang.IllegalAccessError: module java.base does not open java.lang to unnamed module @41dacfe1; to use the thread-local-reset capability on Java 24 or later, use this JVM option: --add-opens java.base/java.lang=ALL-UNNAMED
        at org.jboss.threads.JDKSpecific$ThreadAccess.<clinit>(JDKSpecific.java:32)
        at org.jboss.threads.ThreadLocalResettingRunnable.run(ThreadLocalResettingRunnable.java:13)
        at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
        at java.base/java.lang.Thread.run(Thread.java:1447)

Using the suggested mvn quarkus:dev -Djvm.args="--add-opens java.base/java.lang=ALL-UNNAMED" option does work around the issue (for now).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions