ibatis-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bahri Gencsoy (JIRA)" <ibatis-...@incubator.apache.org>
Subject [jira] Updated: (IBATIS-218) 'i' character in property names, with Turkish locale
Date Sat, 05 Nov 2005 01:15:19 GMT
     [ 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
> Patch is easy, in com/ibatis/sqlmap/engine/mapping/result/AutoResultMap change following
>      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:
For more information on JIRA, see:

View raw message