You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Sergiy Matusevych (JIRA)" <ji...@apache.org> on 2017/09/01 01:18:00 UTC

[jira] [Created] (REEF-1876) Support enums in named parameters in Tang

Sergiy Matusevych created REEF-1876:
---------------------------------------

             Summary: Support enums in named parameters in Tang
                 Key: REEF-1876
                 URL: https://issues.apache.org/jira/browse/REEF-1876
             Project: REEF
          Issue Type: Improvement
          Components: Tang
            Reporter: Sergiy Matusevych
            Assignee: Sergiy Matusevych


Tang currently does not support Java {{enum}} in {{NamedParameter}}, i.e. one cannow write
{code}
public enum FooEnum { BAR, BAZ }

@NamedParameter(default_value = "BAR")
private final class FooParam implements Name<FooEnum> { }
{code}
We can fix Tang to invoke static {{.valueOf(String)}} method to instantiate enums from strings.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)