Uploaded image for project: 'REEF (Retired)'
  1. REEF (Retired)
  2. REEF-1876

Support enums in named parameters in Tang

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 0.17
    • Tang
    • None

    Description

      Tang currently does not support Java enum in NamedParameter, i.e. one cannow write

      public enum FooEnum { BAR, BAZ }
      
      @NamedParameter(default_value = "BAR")
      private final class FooParam implements Name<FooEnum> { }
      

      We can fix Tang to invoke static .valueOf(String) method to instantiate enums from strings.

      Attachments

        Issue Links

          Activity

            People

              motus Sergiy Matusevych
              motus Sergiy Matusevych
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 24h
                  24h
                  Remaining:
                  Remaining Estimate - 24h
                  24h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified