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

Blueprint property resolution fails for setters with derived type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • blueprint-core-1.6.2
    • blueprint-core-1.9.0
    • Blueprint
    • 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

            gnodet Guillaume Nodet
            dhirajsb Dhiraj Sureshkumar Bokde
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: