-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Quarkus and Java 21 Instance Main Methods is not working #36154
Comments
/cc @Sanne (core), @aloubyansky (core), @gsmet (core), @radcortez (core), @stuartwdouglas (core) |
Interesting find! Seems like we'll need to follow the rules in |
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 26, 2023
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 26, 2023
This solution is based on transforming the main class so call-sites don't need to change Closes: quarkusio#36154 Alternative to: quarkusio#36158
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 27, 2023
This solution is based on transforming the main class so call-sites don't need to change Closes: quarkusio#36154 Alternative to: quarkusio#36158
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 28, 2023
This solution is based on transforming the main class so call-sites don't need to change Closes: quarkusio#36154 Alternative to: quarkusio#36158
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Sep 29, 2023
This solution is based on transforming the main class so call-sites don't need to change Closes: quarkusio#36154 Alternative to: quarkusio#36158
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Oct 2, 2023
This solution is based on transforming the main class so call-sites don't need to change Closes: quarkusio#36154 Alternative to: quarkusio#36158
geoand
added a commit
to geoand/quarkus
that referenced
this issue
Oct 2, 2023
This solution is based on transforming the main class so call-sites don't need to change Closes: quarkusio#36154 Alternative to: quarkusio#36158
holly-cummins
pushed a commit
to holly-cummins/quarkus
that referenced
this issue
Feb 8, 2024
This solution is based on transforming the main class so call-sites don't need to change Closes: quarkusio#36154 Alternative to: quarkusio#36158
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I tried customized QuarkusMain method as shown in https://quarkus.io/guides/lifecycle#the-main-method with Java 21 Instance Main Methods (preview feature).
Code example in https://github.com/rsvoboda/code-with-quarkus/tree/21-main
maven-compiler-plugin enabled to use preview features
And I received:
I checked if I will see
System.out.println("==> Running main method");
when calling the compiled jar just to ensure compilation went well. Message was printedExpected behavior
Quarkus boots
Actual behavior
Quarkus fails to start
How to Reproduce?
21-main
branch - https://github.com/rsvoboda/code-with-quarkus/tree/21-mainmvn clean package -DskipTests && java --enable-preview -jar target/quarkus-app/quarkus-run.jar
Output of
uname -a
orver
macOS
Output of
java -version
Java 21
GraalVM version (if different from Java)
No response
Quarkus version or git rev
3.4.1
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: