You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Praktomat/srrc/checker/compiler/JavaBuilder.py searches via javap some class with a valid main method. However, as far I can see, if there are more than one classes with valid main methods, then the tests will start an arbitrary one of them. Imho it would be more concise to decline such solutions with an informative error message, i.e., compilation (and tests?) should fail.
The text was updated successfully, but these errors were encountered:
chris21k
changed the title
Feature request: deny submissions with no unique Java program start
Feature request: deny submissions with non-unique Java program start
Dec 17, 2019
We at H-BRS are using a ScriptChecker for testing *.java not containing a UTF-8 BOM (since it will be a compiler error having an message not usable for beginners) and a script for checking if only one java has a main .
[Edit: 2.11.2021: If some one want our script checking this, just ask.]
Praktomat/srrc/checker/compiler/JavaBuilder.py searches via javap some class with a valid main method. However, as far I can see, if there are more than one classes with valid main methods, then the tests will start an arbitrary one of them. Imho it would be more concise to decline such solutions with an informative error message, i.e., compilation (and tests?) should fail.
The text was updated successfully, but these errors were encountered: