Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-1544

Blueprint property resolution fails for setters with derived type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: blueprint-core-1.6.2
    • Fix Version/s: blueprint-core-1.9.0
    • Component/s: Blueprint
    • Labels:
      None

      Description

      Blueprint property resolution expects getter and setter methods to use exactly the same class. It should allow setters that take a derived type using isAssignableFrom() instead of equals(). It currently fails for the following:

          class A {
              private X x;
              public X getX() { return x; }
              public void setX(X x) { this.x = x; }
          }
      
          class B extends A {
              public void setX(Y y) { super.setX(y); } // Y extends X
          }
      

      Trying to set property X for bean B using Blueprint fails.

        Attachments

          Activity

            People

            • Assignee:
              gnt Guillaume Nodet
              Reporter:
              dhirajsb Dhiraj Bokde
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: