groovy

Enum range works only for Groovy enums and not for Java enums

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.5.2
  • Component/s: None
  • Labels:
    None
  • Testcase included:
    yes
  • Number of attachments :
    1

Description

Using range of Enums works only for enums created in Groovy and not for enums created in Java.
Please see attached test.

Activity

Hide
Paul King added a comment -

Ok, I have submitted a fix. Can you test this out please. Test(s) pending ...

Show
Paul King added a comment - Ok, I have submitted a fix. Can you test this out please. Test(s) pending ...
Hide
Paul King added a comment -

Feel free to test that I have the logic correct. Don't go overboard though as the implementation will move as per discussion on dev list. Leaving issue open for now until the code has moved to the Java 5 DGM class once that is in place.

Show
Paul King added a comment - Feel free to test that I have the logic correct. Don't go overboard though as the implementation will move as per discussion on dev list. Leaving issue open for now until the code has moved to the Java 5 DGM class once that is in place.
Hide
Venkat Subramaniam added a comment -

Thanks for adding this feature. My little tests work.

Show
Venkat Subramaniam added a comment - Thanks for adding this feature. My little tests work.
Hide
Paul King added a comment -

Test added

Show
Paul King added a comment - Test added
Hide
Paul King added a comment -

close off release 1.5.4

Show
Paul King added a comment - close off release 1.5.4

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: