Uploaded image for project: 'iBatis for Java [READ ONLY]'
  1. iBatis for Java [READ ONLY]
  2. IBATIS-218

'i' character in property names, with Turkish locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.1.5
    • 2.1.7
    • Core
    • None
    • Doesn't matter, when Locale.getDefault() return Turkish locale

    Description

      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]);

      Attachments

        1. AutoResultMap.java
          6 kB
          Bahri Gencsoy

        Activity

          People

            cbegin Clinton Begin
            bahri.gencsoy Bahri Gencsoy
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: