Uploaded image for project: 'Realm Java SDK'
  1. Realm Java SDK
  2. RJAVA-356

Field annotated as @Ignored is not ignored on annotation processing

      Goal

      Compile project

      Actual Results

      error: Field "status" of type "UserStatus" is not supported.

      Steps & Code to Reproduce

      Realm class:

      @RealmClass
      open class AppUserRealm : RealmModel, ConvertableToModel<AppUserModel> {
       ...
          private var statusStr: String = UserStatus.ACTIVE.name
      
          @Ignore
          var status: UserStatus = UserStatus.ACTIVE
              get() = RealmUtils.enumValueOf(field, statusStr)!!
              set(value) {
                  field = value
                  statusStr = value.name
              }
      ...
      }
      

      UserStatus is an enum.

      Error happens in time of kapt processing.

      Gradle file plugins block:

      plugins {
          id "com.android.library"
          id "kotlin-android"
          id "kotlin-android-extensions"
          id "kotlin-kapt"
          id "realm-android"
      }
      

      Version of Realm and tooling

      Realm version(s): 5.8.0

      Realm Sync feature enabled: No

      Android Studio version: 3.2.1

      Android Build Tools version: 28.0.3

      Gradle version: 4.10.1

      Which Android version and device(s): all

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: