# Android data class generating bug

**URL:** <https://discuss.kotlinlang.org/t/android-data-class-generating-bug/20173>\
**Category:** Android\
**Created:** [December 7, 2020, 4:09pm UTC](https://discuss.kotlinlang.org/t/android-data-class-generating-bug/20173 "2020-12-07T16:09:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhdctlts](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/zhdctlts/32/8199_2.png) [@zhdctlts](https://discuss.kotlinlang.org/u/zhdctlts)\
**Post date:** [December 7, 2020, 4:09pm UTC](https://discuss.kotlinlang.org/t/android-data-class-generating-bug/20173/1 "2020-12-07T16:09:01Z")

</div>

While generating data class on computers whose system language is Turkish, an error occurs in properties starting with the letter “i”.

---

<div class="post-metadata">

**Author:** ![bjonnh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/bjonnh/32/8106_2.png) [@bjonnh](https://discuss.kotlinlang.org/u/bjonnh)\
**Post date:** [December 10, 2020, 2:05am UTC](https://discuss.kotlinlang.org/t/android-data-class-generating-bug/20173/2 "2020-12-10T02:05:40Z")

</div>

Is the error in your editor, or when the code is compiled? What is the error? What is the kotlin version, editor, operating system?

---

<div class="post-metadata">

**Author:** ![zhdctlts](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/zhdctlts/32/8199_2.png) [@zhdctlts](https://discuss.kotlinlang.org/u/zhdctlts)\
**Post date:** [December 10, 2020, 3:36am UTC](https://discuss.kotlinlang.org/t/android-data-class-generating-bug/20173/3 "2020-12-10T03:36:25Z")

</div>

Editor :Android Studio,  
Kotlin vers:1.4+  
OS: Windows  
OS Language Turkish

 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/3/3ca3c2c918a680bedde064aad6602e9aa9385b9b.png)

An error occurs when the code is compiled. When I check the Java (generated) path, I see that no getter is created for properties starting with the letter “i”.  
The problem only happens if the property begins with the letter “i”(For example, if I type “myicon” instead of “icon”, the problem goes away.). And I think it’s because the system language is Turkish.

---

<div class="post-metadata">

**Author:** ![Beholder](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/beholder/32/2078_2.png) [@Beholder](https://discuss.kotlinlang.org/u/Beholder)\
**Post date:** [December 11, 2020, 9:28am UTC](https://discuss.kotlinlang.org/t/android-data-class-generating-bug/20173/4 "2020-12-11T09:28:53Z")

</div>

It’s definitely a bug, likely in Kapt, you should report it.  
They should use locale-insensitive methods in code (for example, `toUpperCase(Locale.ROOT)`)  
The workaround is to set another locale when running Gradle.
