Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2641

EnumLabel misbehaves with anonymous enum

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.5
    • 1.4.6, 1.5-M1
    • wicket
    • None

    Description

      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();
      }

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            jdonnerstag Juegen Donnerstag
            slonopotamus Marat Radchenko
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment