[External] : Re: New candidate JEP: 463: Implicit Classes and Instance Main Methods (Second Preview)

Ron Pressler ron.pressler at oracle.com
Tue Nov 7 20:23:23 UTC 2023



> On 1 Nov 2023, at 22:10, Nathan Reynolds <numeralnathan at gmail.com> wrote:
> 
> 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.


Why? These are features that beginners would likely enjoy using because they don’t require introducing concepts that aren’t needed at that time, but these are not feature that *only* beginners should use. In fact, a separate beginners’ dialect is something that the JEP very much tries to avoid. Beginners may *need* this more, but it’s certainly not for their exclusive use.


More information about the amber-dev mailing list