Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: deny submissions with non-unique Java program start #308

Open
chris21k opened this issue Dec 17, 2019 · 1 comment
Open

Comments

@chris21k
Copy link

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.

@chris21k 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
@ifrh
Copy link
Contributor

ifrh commented Apr 10, 2021

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.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants