[ 
http://www.stripesframework.org/jira/browse/STS-746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-746.
--------------------------


> ResolverUtil does not find writeMethodName if getter and setter are declared 
> in different classes
> -------------------------------------------------------------------------------------------------
>
>                 Key: STS-746
>                 URL: http://www.stripesframework.org/jira/browse/STS-746
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.5.3
>            Reporter: Marcus Kraßmann
>
> Scenario:
> We have the following classes:
> public interface IFace {
>   public abstract Long getId();
> }
> public abstract class A implements IFace{
>   public abstract void setId(Long id);
> }
> public class MyImpl extends A {
>   private Long id;
>   public Long getId() {
>     return id;
>   }
>   public void setId(Long id) {
>     this.id = id;
>   }
> }
> Problem:
> If I use the class MyImpl in an action bean, no passed property "id" can be 
> set. With debug level activated, I can see something like this:
> *** net.sourceforge.stripes.util.bean.EvaluationException: Could not write 
> read-only property 'id' on bean of type testing.MyImpl ***
> If I also add an additional line "public abstract Long getId();" to the class 
> A, the property binding works fine. This is quite unexpected, at least for 
> me. Additionally, no visible exception / warning seems to be shown on logging 
> level warn or higher.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to