You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Bahri Gencsoy (JIRA)" <ib...@incubator.apache.org> on 2005/11/05 02:15:19 UTC

[jira] Updated: (IBATIS-218) 'i' character in property names, with Turkish locale

     [ http://issues.apache.org/jira/browse/IBATIS-218?page=all ]

Bahri Gencsoy updated IBATIS-218:
---------------------------------

    Attachment: AutoResultMap.java

Fixed file for version 2.1.5

> 'i' character in property names, with Turkish locale
> ----------------------------------------------------
>
>          Key: IBATIS-218
>          URL: http://issues.apache.org/jira/browse/IBATIS-218
>      Project: iBatis for Java
>         Type: Bug
>   Components: SQL Maps
>     Versions: 2.1.5
>  Environment: Doesn't matter, when Locale.getDefault() return Turkish locale
>     Reporter: Bahri Gencsoy
>     Priority: Blocker
>  Attachments: AutoResultMap.java
>
> You can not use 'i' character in sqlmap files for the name of any property if locale is Turkish. 
> Reproducing is easy, say Locale.setDefault(new Locale("tr")) in application initilization code and look at the values of properties containing 'i' character.
> The problem is about mapping the parameters to bean methods, not about retrieving bean methods.
> Patch is easy, in com/ibatis/sqlmap/engine/mapping/result/AutoResultMap change following line:
>      propertyMap.put(propertyNames[i].toUpperCase(), propertyNames[i]);
> with:
>      propertyMap.put(propertyNames[i].toUpperCase(java.util.Locale.ENGLISH), propertyNames[i]);

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira