'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


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

Reply via email to