[ https://issues.apache.org/jira/browse/WICKET-2609?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12789393#action_12789393 ]
Marat Radchenko commented on WICKET-2609: ----------------------------------------- I doubt current behavior makes sense since it produces resource keys without classname at all -> enum constants from different classes get same resource keys. Additionally, every bugfix alters behavior :) But, your word is last here. Let it be 1.5, it just means i won't use it in 1.4 > EnumChoiceRenderer misbehaves with anonymous enum classes > --------------------------------------------------------- > > Key: WICKET-2609 > URL: https://issues.apache.org/jira/browse/WICKET-2609 > Project: Wicket > Issue Type: Bug > Components: wicket > Affects Versions: 1.4.4 > Reporter: Marat Radchenko > Fix For: 1.5-M1 > > Attachments: EnumChoiceRendererTest.java > > > Please find attached testcase reproducing the problem. > Proper fix is to do > return object.getDeclaringClass().getSimpleName() + "." + object.name() > instead of > return object.getClass().getSimpleName() + "." + object.name() > in EnumChoiceRenderer.resourceKey -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.