Skip to content

Conversation

cayhorstmann
Copy link

@cayhorstmann cayhorstmann commented Aug 23, 2025

This patch adds support for JEP 512. A program can be launched by static void main(String[] args), instance void main(String[] args), static void main(), or instance void main(). The classic extends Runnable still works.

As implemented, this works for all versions of Java. There is the slight risk of backwards incompatibility. Perhaps it would be desirable to only allow the new forms when the Java version is ≥ 25, or the user sets an attribute in the POM file requesting it?

@slawekjaranowski slawekjaranowski linked an issue Aug 23, 2025 that may be closed by this pull request
@slawekjaranowski
Copy link
Member

@cayhorstmann please look at CI output, please try to build project locally and check if some files was updated
please use locally JDK 11+

@cayhorstmann
Copy link
Author

I looked at the two failures, mexec-29-non-static, and mexec-98. They should no longer fail with JEP 512. I removed them.

@cayhorstmann cayhorstmann changed the title JSR 512 Support JEP 512 Support Aug 23, 2025
@slawekjaranowski slawekjaranowski added this to the 3.6.0 milestone Aug 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Missing support for JEP 512
2 participants