Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
Consider the following:
@groovy.transform.TypeChecked enum E { FOO; // no error for missing argument E(String s) { } }
Enum constant field FOO is initialized by static method call $INIT("FOO",0) which accepts Object[] as its argument(s). Thus no error is produced for the example but it fails at runtime.