libgdx / gdx-liftoff

A modern setup tool for libGDX Gradle projects
Apache License 2.0
527 stars 49 forks source link

Bug: main class with name `sealed` can be created with Java >=15 #204

Open FelixDes opened 2 hours ago

FelixDes commented 2 hours ago

I have noticed that the app allows me to create a main class with the name sealed. However, this is not a valid class name in Java starting from version 15. The project creation flow requests the Java version only after the main class name is set. Therefore, to avoid having to rewrite the entire flow, I propose banning this name, along with other reserved keywords like int, class, etc.

I created a PR that fixes that issue.

FelixDes commented 2 hours ago

Linked PR