cmelchior / realmfieldnameshelper

Realm extension library used to create more type-safe queries.
Apache License 2.0
173 stars 21 forks source link

Kotlin Support #9

Closed ReginFell closed 7 years ago

ReginFell commented 7 years ago

Hi! Do you have plans to implement kotlin support?

cmelchior commented 7 years ago

Is there something that doesn't work in Kotlin? (I haven't tried)

thebrokenbar commented 7 years ago

I've came across a bug with Kotlin.

Error:java.lang.RuntimeException: java.lang.ClassCastException: com.sun.tools.javac.code.Symbol$VarSymbol cannot be cast to javax.lang.model.element.TypeElement

To reproduce: create Kotlin project with Realm and your Library imported with 'kapt'. Create RealmObject class.

cmelchior commented 7 years ago

@thebrokenpipe Thanks for reporting this. I can reproduce this as well.