You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/01/30 22:37:00 UTC

[jira] [Commented] (ARIES-1544) Blueprint property resolution fails for setters with derived type

    [ https://issues.apache.org/jira/browse/ARIES-1544?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16345931#comment-16345931 ] 

ASF subversion and git services commented on ARIES-1544:
--------------------------------------------------------

Commit 1822713 from [~gnt] in branch 'aries/trunk'
[ https://svn.apache.org/r1822713 ]

[ARIES-1544] Blueprint property resolution fails for setters with derived type

> Blueprint property resolution fails for setters with derived type
> -----------------------------------------------------------------
>
>                 Key: ARIES-1544
>                 URL: https://issues.apache.org/jira/browse/ARIES-1544
>             Project: Aries
>          Issue Type: Bug
>          Components: Blueprint
>    Affects Versions: blueprint-core-1.6.2
>            Reporter: Dhiraj Bokde
>            Priority: Major
>             Fix For: blueprint-core-1.9.0
>
>
> 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:
> {code}
>     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
>     }
> {code}
> Trying to set property X for bean B using Blueprint fails. 



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)