Java doesn't accept that code because the enum id ...
# general
l
Java doesn't accept that code because the enum id isn't compile time static, but groovy is fine with it.