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.