[ 
https://issues.apache.org/jira/browse/IBATIS-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeff Butler closed IBATIS-526.
------------------------------

    Resolution: Invalid

This is not a bug.

Overloaded setters break the JavaBeans specification and are not supported by 
iBATIS.  We've added code to detect overloaded setters and throw warnings or 
exceptions.  My guess is that you've recently upgraded your iBATIS version and 
are now seeing this behavior.


> overloading method in javabean causes bulkbean exception
> --------------------------------------------------------
>
>                 Key: IBATIS-526
>                 URL: https://issues.apache.org/jira/browse/IBATIS-526
>             Project: iBatis for Java
>          Issue Type: Bug
>          Components: SQL Maps
>    Affects Versions: 2.3.3
>         Environment: jdk1.4, windows, websphere, oracle.Ibatis 2.3.3 jar
>            Reporter: sharath
>   Original Estimate: 24h
>  Remaining Estimate: 24h
>
>         
>           
> I have this code since long time and it was working fine all these days like 
> for 7 months but suddenly it started throwing Bulk Bean exception. Nothing 
> has been changed in recent times.     
> I removed one setter method and it started working fine but what i want know 
> is how it was working all these days ? why it blown up today ?  It would be 
> great help if you have any clue about the behavior.         
> Below is Java Bean with setAddressId Overloaded method and xml returns 
> java.math.Decimal.
>             
>     private BigInteger addressId;
>                 public void setAddressId(BigInteger addressId) {
>               this.addressId = addressId;
>                    }
>       
>       public void setAddressId(BigDecimal addressId) {
>               this.addressId = (addressId == null ? null : 
> addressId.toBigInteger());
>       }
> <selectKey keyProperty="addressId" resultClass="java.math.BigDecimal">
>       select CUST_ACCT_ADDR_ASSN_S.NEXTVAL as ID from DUAL
>     </selectKey>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to