Uploaded image for project: 'Tapestry 5'
  1. Tapestry 5
  2. TAP5-2459

Setter in subinterface of getter's interface not found by tapestry

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.3.7
    • 5.4
    • tapestry-core
    • None

    Description

      When a setter is declared in a subinterface of the interface containing the associated getter, tapestry can't access to the setter and see the property in read-only.

      By example, if I have the following objects :

      public interface ReadableObject {
      String getValue();
      }

      public interface ReadableWritableObject extends ReadableObject {
      void setValue(String v);
      }

      When I reference an object of type ReadableWritableObject in a form, I have the following error at the form validation :
      "Expression 'readableWritableObject.value' for class myPackage.myComponentWithForm is read-only."

      When I move the setter in the first Interface (ReadableObject), it works.

      Is it a bug of tapestry 5.3.7 ?

      Attachments

        Activity

          People

            Unassigned Unassigned
            Vincent D. Vincent Dhellemmes
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: