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

EnumChoiceRenderer misbehaves with anonymous enum classes

    XMLWordPrintableJSON

Details

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

    Description

      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

      Attachments

        1. EnumChoiceRendererTest.java
          0.4 kB
          Marat Radchenko

        Issue Links

          Activity

            People

              ivaynberg Igor Vaynberg
              slonopotamus Marat Radchenko
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: