I am running Groovy Version: 1.7.0 JVM: 1.6.0_17
(Update - I just upgraded to 1.7.1 and got the same errors!)
I tried using enums using the exact syntax from the Groovy documentation, and every time I see a compilation error:
Groovy:The class java.lang.Enum refers to the class java.lang.Enum and uses 1 parameters, but the referred class takes no parameters
Any ideas on what's going on?
For example: this code will not compile or run, and the error above appears.
enum VehicleStatus { OFF, IDLING, ACCELERATING, DECELARATING }
class Vehicle
{
Long id
Long version
VehicleStatus status
}
user122299
source
share