realm-java icon indicating copy to clipboard operation
realm-java copied to clipboard

realm getSchema incorrect return type

Open idok595 opened this issue 9 years ago • 3 comments

realm.getSchema() function return object from type StandardRealmSchema this type is object have packcge only access so it is impossible to access his methods, the only way is to convert this object to (RealmSchema), i think it is mistake the return type need to be RealmSchema and not StandardRealmSchema

realm version in use :3.1.0

idok595 avatar Apr 06 '17 11:04 idok595

Yep that does sound like a bug @bmeike

Zhuinden avatar Apr 06 '17 12:04 Zhuinden

It's a mistake. I'll make a PR to fix this. Sorry for inconvenience.

zaki50 avatar Apr 06 '17 14:04 zaki50

We need more fix.

https://github.com/realm/realm-java/blob/releases/realm/realm-library/src/main/java/io/realm/BaseRealm.java#L467

zaki50 avatar Apr 08 '17 03:04 zaki50