New candidate JEP: 463: Implicit Classes and Instance Main Methods (Second Preview)
Nathan Reynolds
numeralnathan at gmail.com
Wed Nov 1 22:30:42 UTC 2023
As part of the JEP, can the static analysis tools emit a warning that a
simple main() is in use? Perhaps, javac and the Eclipse compiler can
output a warning when the project reaches a large enough size or the code
shows that the programmer is ready to use the typical main(). If the .java
file has public, static, and void, then it is time to use these on main().
PMD and/or SonarQube can always output a warning since these are not
typically used for beginner student programs.
On Wed, Nov 1, 2023 at 2:40 PM Mark Reinhold <mark.reinhold at oracle.com>
wrote:
> https://openjdk.org/jeps/463
>
> Summary: Evolve the Java programming language so that students can
> write their first programs without needing to understand language
> features designed for large programs. Far from using a separate dialect
> of the language, students can write streamlined declarations for
> single-class programs and then seamlessly expand their programs to use
> more advanced features as their skills grow. This is a preview language
> feature.
>
> - Mark
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jdk-dev/attachments/20231101/9b084b37/attachment.htm>
More information about the jdk-dev
mailing list