{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/1904","labels_url":"https://api.github.com/repos/realm/realm-java/issues/1904/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/1904/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/1904/events","html_url":"https://github.com/realm/realm-java/issues/1904","id":120898537,"number":1904,"title":"Keep annotation does not keep class's constructor","user":{"login":"skyisle","id":71561,"avatar_url":"https://avatars.githubusercontent.com/u/71561?v=3","gravatar_id":"","url":"https://api.github.com/users/skyisle","html_url":"https://github.com/skyisle","followers_url":"https://api.github.com/users/skyisle/followers","following_url":"https://api.github.com/users/skyisle/following{/other_user}","gists_url":"https://api.github.com/users/skyisle/gists{/gist_id}","starred_url":"https://api.github.com/users/skyisle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skyisle/subscriptions","organizations_url":"https://api.github.com/users/skyisle/orgs","repos_url":"https://api.github.com/users/skyisle/repos","events_url":"https://api.github.com/users/skyisle/events{/privacy}","received_events_url":"https://api.github.com/users/skyisle/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/Help","name":"Help","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-08T00:04:49Z","updated_at":"2015-12-09T09:00:08Z","closed_at":null,"body":"Following crash reported for my app.\r\n\r\n```\r\nFatal Exception: java.lang.NoSuchMethodError: no non-static method \"Lio/realm/exceptions/RealmError;.<init>(Ljava/lang/String;)V\"\r\n       at io.realm.internal.TableQuery.nativeImportHandoverTableViewIntoSharedGroup(TableQuery.java)\r\n       at io.realm.internal.TableQuery.importHandoverTableView(TableQuery.java:502)\r\n       at io.realm.RealmResults.swapTableViewPointer(RealmResults.java:691)\r\n       at io.realm.HandlerController.completedAsyncQueriesUpdate(HandlerController.java:223)\r\n       at io.realm.HandlerController.handleMessage(HandlerController.java:307)\r\n       at android.os.Handler.dispatchMessage(Handler.java:98)\r\n       at android.os.Looper.loop(Looper.java:148)\r\n       at android.app.ActivityThread.main(ActivityThread.java:5525)\r\n       at java.lang.reflect.Method.invoke(Method.java)\r\n       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:730)\r\n       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) \r\n```\r\n\r\nI used recommended proguard options on https://realm.io/docs/java/latest/#proguard \r\nI think options should be changed to include constructors.\r\n\r\nDecompiled RealmError does not contain constructor\r\n```\r\n.class public Lio/realm/exceptions/RealmError;\r\n.super Ljava/lang/Error;\r\n.source \"RealmError.java\"\r\n\r\n\r\n# annotations\r\n.annotation build Lio/realm/internal/Keep;\r\n.end annotation\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/163154616","html_url":"https://github.com/realm/realm-java/issues/1904#issuecomment-163154616","issue_url":"https://api.github.com/repos/realm/realm-java/issues/1904","id":163154616,"user":{"login":"kneth","id":1225363,"avatar_url":"https://avatars.githubusercontent.com/u/1225363?v=3","gravatar_id":"","url":"https://api.github.com/users/kneth","html_url":"https://github.com/kneth","followers_url":"https://api.github.com/users/kneth/followers","following_url":"https://api.github.com/users/kneth/following{/other_user}","gists_url":"https://api.github.com/users/kneth/gists{/gist_id}","starred_url":"https://api.github.com/users/kneth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kneth/subscriptions","organizations_url":"https://api.github.com/users/kneth/orgs","repos_url":"https://api.github.com/users/kneth/repos","events_url":"https://api.github.com/users/kneth/events{/privacy}","received_events_url":"https://api.github.com/users/kneth/received_events","type":"User","site_admin":false},"created_at":"2015-12-09T09:00:08Z","updated_at":"2015-12-09T09:00:08Z","body":"@skyisle Thanks for pointing us in the right direction. We'll update the documentation."}}