EnumLabel misbehaves with anonymous enum
----------------------------------------

                 Key: WICKET-2641
                 URL: https://issues.apache.org/jira/browse/WICKET-2641
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.4.5
            Reporter: Marat Radchenko


Same problem as was with EnumChoiceRenderer (see WICKET-2609)

protected String resourceKey(T value)
{
        return value.getClass().getSimpleName() + "." + value.name();
}

should be changed to:
protected String resourceKey(T value)
{
        return value.getDeclaringClass().getSimpleName() + "." + value.name();
}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to