codewars / runner

Issue tracker for Code Runner
32 stars 8 forks source link

Java: cannot detect class name of enum #274

Closed Madjosz closed 6 months ago

Madjosz commented 6 months ago

Similar to #186 Java runner cannot detect the class name if the top level structure is an enum.

Following code should result in a source file named A.java:

enum A {}

Currently execution fails with

Server Execution Error:

Failed to detect class name:
enum A {}

Request Error:

Request failed with status code 422
Please fix the issue and try again.

Happens in all supported Java version (8, 11, 17).

kazk commented 6 months ago

Deployed a fix

Madjosz commented 6 months ago

Confirmed fixed.