Closed martinmo closed 1 year ago
Would The exercise expects a class with the name SomeClass in the package <default> (i.e., no package). You did not implement the class in the exercise.
be OK? I would choose that implementation, as it does not require reordering in the messages or grammatical adjustments:
default package
package net.example.test
It should address the problem for now, that the package name is just an empty string. If this solution does not meet your needs, feel free to reopen the ticket and preferably open a pull request with your suggestion.
Will be fixed in version 1.12.0.
Thanks for reposting and creating the bug report!
This solution is sufficient. Thank you very much!
Is your feature request related to a problem? Please describe. If a class is expected in the default package, e.g., with the following
test.json
snippet:and cannot be found (or is misplaced), the error message will read: "The exercise expects a class with the name SomeClass in the package . You did not implement the class in the exercise."
Describe the solution you'd like I think the error message should look like:
And, maybe, to mitigate that beginners then try to add
package default;
at the beginning of their Java files, one could even go further:Describe alternatives you've considered
Additional context This is only affects very basic Java programming exercises w/o packages.
Ares-Version you are using 1.11.3