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:11:19 UTC
[jira] Created: (IBATIS-218) 'i' character in property names, with Turkish locale
'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
[jira] Closed: (IBATIS-218) 'i' character in property names, with Turkish locale
Posted by "Clinton Begin (JIRA)" <ib...@incubator.apache.org>.
[ http://issues.apache.org/jira/browse/IBATIS-218?page=all ]
Clinton Begin closed IBATIS-218:
--------------------------------
Fix Version: 2.2.0
Resolution: Fixed
Assign To: Clinton Begin
Fixed as described. Thanks for the patch!
> '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
> Assignee: Clinton Begin
> Priority: Blocker
> Fix For: 2.2.0
> 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
[jira] Updated: (IBATIS-218) 'i' character in property names, with Turkish locale
Posted by "Bahri Gencsoy (JIRA)" <ib...@incubator.apache.org>.
[ 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