Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.5.2
-
Component/s: groovy-jdk
-
Labels:None
-
Testcase included:yes
-
Patch Submitted:Yes
-
Number of attachments :
Description
It would be cool if the "as" keyword could be used to coerce strings to enum values. Since this currently throws an exception, adding this functionality should have no impact on existing code.
Should be in r10236. Thanks for the patch.