realm-java v0.84.0 Release Notes

Release Date: 2015-10-22 // over 8 years ago
    • ➕ Added support for async queries and transactions.
    • ➕ Added support for parsing JSON Dates with timezone information. (Thank you @LateralKevin.)
    • ➕ Added RealmQuery.isEmpty().
    • ➕ Added Realm.isClosed() method.
    • ➕ Added Realm.distinct() method.
    • ➕ Added RealmQuery.isValid(), RealmResults.isValid() and RealmList.isValid(). Each method checks whether the instance is still valid to use or not(for example, the Realm has been closed or any parent object has been removed).
    • ➕ Added Realm.isInTransaction() method.
    • ⚡️ Updated Realm Core to version 0.94.3.
      • Fallback for mremap() now work correctly on BlackBerry devices.
    • Following methods in managed RealmList now throw IllegalStateException instead of native crash when RealmList.isValid() returns false: add(int,RealmObject), add(RealmObject)
    • 🚚 Following methods in managed RealmList now throw IllegalStateException instead of ArrayIndexOutOfBoundsException when RealmList.isValid() returns false: set(int,RealmObject), move(int,int), remove(int), get(int)
    • 🚚 Following methods in managed RealmList now throw IllegalStateException instead of returning 0/null when RealmList.isValid() returns false: clear(), removeAll(Collection), remove(RealmObject), first(), last(), size(), where()
    • RealmPrimaryKeyConstraintException is now thrown instead of RealmException if two objects with same primary key are inserted.
    • 🚚 IllegalStateException is now thrown when calling Realm's clear(), RealmResults's remove(), removeLast(), clear() or RealmObject's removeFromRealm() from an incorrect thread.
    • 🛠 Fixed a bug affecting RealmConfiguration.equals().
    • 🛠 Fixed a bug in RealmQuery.isNotNull() which produced wrong results for binary data.
    • 🛠 Fixed a bug in RealmQuery.isNull() and RealmQuery.isNotNull() which validated the query prematurely.
    • 🛠 Fixed a bug where closed Realms were trying to refresh themselves resulting in a NullPointerException.
    • 🛠 Fixed a bug that made it possible to migrate open Realms, which could cause undefined behavior when querying, reading or writing data.
    • 🛠 Fixed a bug causing column indices to be wrong for some edge cases. See #1611 for details.