[ http://mc4j.org/jira/browse/STS-290?page=all ]

Tim Fennell updated STS-290:
----------------------------

    Comment: was deleted

> Formatter needed for anonymous-inner-class Enum types to ensure name() is 
> used to turn enums into Strings
> ---------------------------------------------------------------------------------------------------------
>
>                 Key: STS-290
>                 URL: http://mc4j.org/jira/browse/STS-290
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Formatting
>    Affects Versions: Release 1.4.1
>            Reporter: Andy
>         Assigned To: Tim Fennell
>             Fix For: Release 1.4.2
>
>
> In Stripes 1.4.1, DefaultFormatterFactory doesn't recognize enums of the 
> following format:
> enum Xxx {
> Aaa { public int Mmm() { return 1; } },
> Bbb { public int Mmm() { return 2; } };
> public abstract int Mmm();
> }
> The following patch to DefaultFormatterFactory should fix it.
> - else if (clazz.isEnum()) {
> + else if (Enum.class.isAssignableFrom(clazz)) {

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://mc4j.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to