{"action":"created","issue":{"url":"https://api.github.com/repos/realm/realm-java/issues/2478","repository_url":"https://api.github.com/repos/realm/realm-java","labels_url":"https://api.github.com/repos/realm/realm-java/issues/2478/labels{/name}","comments_url":"https://api.github.com/repos/realm/realm-java/issues/2478/comments","events_url":"https://api.github.com/repos/realm/realm-java/issues/2478/events","html_url":"https://github.com/realm/realm-java/issues/2478","id":141194947,"number":2478,"title":"@Ignore'd members of certain types in RealmObject produce errors","user":{"login":"beeender","id":449296,"avatar_url":"https://avatars.githubusercontent.com/u/449296?v=3","gravatar_id":"","url":"https://api.github.com/users/beeender","html_url":"https://github.com/beeender","followers_url":"https://api.github.com/users/beeender/followers","following_url":"https://api.github.com/users/beeender/following{/other_user}","gists_url":"https://api.github.com/users/beeender/gists{/gist_id}","starred_url":"https://api.github.com/users/beeender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeender/subscriptions","organizations_url":"https://api.github.com/users/beeender/orgs","repos_url":"https://api.github.com/users/beeender/repos","events_url":"https://api.github.com/users/beeender/events{/privacy}","received_events_url":"https://api.github.com/users/beeender/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/realm/realm-java/labels/T:Bug","name":"T:Bug","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"beeender","id":449296,"avatar_url":"https://avatars.githubusercontent.com/u/449296?v=3","gravatar_id":"","url":"https://api.github.com/users/beeender","html_url":"https://github.com/beeender","followers_url":"https://api.github.com/users/beeender/followers","following_url":"https://api.github.com/users/beeender/following{/other_user}","gists_url":"https://api.github.com/users/beeender/gists{/gist_id}","starred_url":"https://api.github.com/users/beeender/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beeender/subscriptions","organizations_url":"https://api.github.com/users/beeender/orgs","repos_url":"https://api.github.com/users/beeender/repos","events_url":"https://api.github.com/users/beeender/events{/privacy}","received_events_url":"https://api.github.com/users/beeender/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-16T07:21:59Z","updated_at":"2016-05-10T17:56:34Z","closed_at":"2016-03-17T05:11:24Z","body":"Error reported on SO http://stackoverflow.com/questions/36011077/ignored-members-of-certain-types-in-realmobject-produce-errors\r\n\r\nConsider the following code:\r\n\r\n```java\r\n    // ...\r\n    import org.json.JSONObject;\r\n    import android.graphics.Bitmap;\r\n    // ...\r\n    \r\n    public class someObject extends RealmObject\r\n    {\r\n    \t@PrimaryKey\r\n    \tprivate String token;\r\n    \tprivate byte[] data;\r\n    \tprivate long updated;\r\n    \r\n    \t@Ignore\r\n    \tprivate jsonBuilder jbRoot;\r\n    \r\n    //\t@Ignore\r\n    //\tprivate JSONObject JSON; // causes compiling error once uncommented\r\n    //  @Ignore\r\n    //  private Bitmap bmp; // also causes the error\r\n```\r\n\r\nPrior to 0.88.0 the code above compiled perfectly. It would not compile on both 0.88.0 & 0.88.1 if I uncommented the ignored JSONObject and/or Bitmap:\r\n\r\n```\r\n    Error:Execution failed for task     ':<package>:transformClassesWithRealmTransformerForDebug'.\r\n    > javassist.CannotCompileException: cannot find org.json.JSONObject\r\n```\r\n\r\nand\r\n\r\n```\r\n    Error:Execution failed for task     ':<package>:transformClassesWithRealmTransformerForDebug'.\r\n    > javassist.CannotCompileException: cannot find android.graphics.Bitmap\r\n```\r\n\r\nrespectively.\r\n\r\nBut it accepts the ignored private member of one of my own types as shown with the `jsonBuilder` object.\r\n\r\nBuild script in case anyone needs it:\r\n\r\n```\r\n        buildscript {\r\n            repositories {\r\n                jcenter()\r\n            }\r\n            dependencies {\r\n                classpath \"io.realm:realm-gradle-plugin:0.88.1\" // tried 0.88.0 as well\r\n            }\r\n        }\r\n        apply plugin: 'realm-android'\r\n```\r\n\r\nThank you. The error above is not actually a blocker but Im just curious why that happens. But I like the 0.88.x changes. :)"},"comment":{"url":"https://api.github.com/repos/realm/realm-java/issues/comments/218238414","html_url":"https://github.com/realm/realm-java/issues/2478#issuecomment-218238414","issue_url":"https://api.github.com/repos/realm/realm-java/issues/2478","id":218238414,"user":{"login":"lectricas","id":8782219,"avatar_url":"https://avatars.githubusercontent.com/u/8782219?v=3","gravatar_id":"","url":"https://api.github.com/users/lectricas","html_url":"https://github.com/lectricas","followers_url":"https://api.github.com/users/lectricas/followers","following_url":"https://api.github.com/users/lectricas/following{/other_user}","gists_url":"https://api.github.com/users/lectricas/gists{/gist_id}","starred_url":"https://api.github.com/users/lectricas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lectricas/subscriptions","organizations_url":"https://api.github.com/users/lectricas/orgs","repos_url":"https://api.github.com/users/lectricas/repos","events_url":"https://api.github.com/users/lectricas/events{/privacy}","received_events_url":"https://api.github.com/users/lectricas/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T17:56:34Z","updated_at":"2016-05-10T17:56:34Z","body":"I'm getting this error, by ignoring Drawable field in my RealmObject inherited class. What should I do to avoid this?"}}