Menu

#25 "main(String[])" method in CharacterClass

open
nobody
None
5
2013-02-14
2013-02-14
No

CharacterClass contains "main(String[])" method. However, "main" as being a default entry point, can lead to ambiguity. Many environments allows the users to select the proper entry point when running or exporting, but there are some which doesn't. Some systems might just randomly select one, and CharacterClass's one might be selected.

So I consider this a s bug, and "main" method should be removed from the class. If still needed for tests, it must be moved into a test project / example etc.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.