realm-java
realm-java copied to clipboard
RealmObjectSchema.setClassName() should amend pkTable entry
Goal
We have covered cases where @PrimaryKey field is renamed or RealmSchema.rename() is involved.
When RealmObjectSchema.setClassName() is called, however, it has potential to lose track of @PrimaryKey of a Table. This is addressed by @beeender and should be fixed.
Expected Results
RealmObjectSchema.setClassName() is called, pkTable should be adjusted accordingly.
Actual Results
pkTable is not adjusted as of now 3ff5741 (July 4th, 2016).
Steps & Code to Reproduce
N/A
Code Sample
Version of Realm and tooling
Realm version(s): 1.1.0 Android Studio version: N/A Which Android version and device: N/A
Fixed by #3149