{"action":"created","issue":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/1324","labels_url":"https://api.github.com/repos/excilys/androidannotations/issues/1324/labels{/name}","comments_url":"https://api.github.com/repos/excilys/androidannotations/issues/1324/comments","events_url":"https://api.github.com/repos/excilys/androidannotations/issues/1324/events","html_url":"https://github.com/excilys/androidannotations/issues/1324","id":57893699,"number":1324,"title":"@InstanceState Bundle bundle makes StackOverflowError","user":{"login":"YoungjaeKim","id":1265284,"avatar_url":"https://avatars.githubusercontent.com/u/1265284?v=3","gravatar_id":"","url":"https://api.github.com/users/YoungjaeKim","html_url":"https://github.com/YoungjaeKim","followers_url":"https://api.github.com/users/YoungjaeKim/followers","following_url":"https://api.github.com/users/YoungjaeKim/following{/other_user}","gists_url":"https://api.github.com/users/YoungjaeKim/gists{/gist_id}","starred_url":"https://api.github.com/users/YoungjaeKim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YoungjaeKim/subscriptions","organizations_url":"https://api.github.com/users/YoungjaeKim/orgs","repos_url":"https://api.github.com/users/YoungjaeKim/repos","events_url":"https://api.github.com/users/YoungjaeKim/events{/privacy}","received_events_url":"https://api.github.com/users/YoungjaeKim/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/excilys/androidannotations/labels/Defect","name":"Defect","color":"e10c02"}],"state":"open","locked":false,"assignee":{"login":"WonderCsabo","id":480485,"avatar_url":"https://avatars.githubusercontent.com/u/480485?v=3","gravatar_id":"","url":"https://api.github.com/users/WonderCsabo","html_url":"https://github.com/WonderCsabo","followers_url":"https://api.github.com/users/WonderCsabo/followers","following_url":"https://api.github.com/users/WonderCsabo/following{/other_user}","gists_url":"https://api.github.com/users/WonderCsabo/gists{/gist_id}","starred_url":"https://api.github.com/users/WonderCsabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonderCsabo/subscriptions","organizations_url":"https://api.github.com/users/WonderCsabo/orgs","repos_url":"https://api.github.com/users/WonderCsabo/repos","events_url":"https://api.github.com/users/WonderCsabo/events{/privacy}","received_events_url":"https://api.github.com/users/WonderCsabo/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-02-17T07:50:05Z","updated_at":"2015-02-17T15:54:03Z","closed_at":null,"body":"When we code as below, it generates as follows,\r\n```\r\n\t@InstanceState\r\n\tBundle mBundle;\r\n\r\n```\r\n```\r\n    @Override\r\n    public void onSaveInstanceState(Bundle bundle) {\r\n        super.onSaveInstanceState(bundle);\r\n        bundle.putBundle(\"mBundle\", mBundle);\r\n    }\r\n```\r\n\r\nBut, accidently when we code as below,\r\n```\r\n\t@InstanceState\r\n\tBundle bundle;\r\n```\r\nAA generates as below, as you expected.\r\n```\r\n    @Override\r\n    public void onSaveInstanceState(Bundle bundle) {\r\n        super.onSaveInstanceState(bundle);\r\n        bundle.putBundle(\"bundle\", bundle);\r\n    }\r\n```\r\n\r\nThis makes StackOverflowError due to infinite loop to do writeToParcel job, similar to the issue shown in the link: http://stackoverflow.com/a/15787218/361100\r\n\r\nIt would be good to throw an error when `@InstanceState` has variable named `bundle`."},"comment":{"url":"https://api.github.com/repos/excilys/androidannotations/issues/comments/74690573","html_url":"https://github.com/excilys/androidannotations/issues/1324#issuecomment-74690573","issue_url":"https://api.github.com/repos/excilys/androidannotations/issues/1324","id":74690573,"user":{"login":"WonderCsabo","id":480485,"avatar_url":"https://avatars.githubusercontent.com/u/480485?v=3","gravatar_id":"","url":"https://api.github.com/users/WonderCsabo","html_url":"https://github.com/WonderCsabo","followers_url":"https://api.github.com/users/WonderCsabo/followers","following_url":"https://api.github.com/users/WonderCsabo/following{/other_user}","gists_url":"https://api.github.com/users/WonderCsabo/gists{/gist_id}","starred_url":"https://api.github.com/users/WonderCsabo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WonderCsabo/subscriptions","organizations_url":"https://api.github.com/users/WonderCsabo/orgs","repos_url":"https://api.github.com/users/WonderCsabo/repos","events_url":"https://api.github.com/users/WonderCsabo/events{/privacy}","received_events_url":"https://api.github.com/users/WonderCsabo/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T15:54:03Z","updated_at":"2015-02-17T15:54:03Z","body":"OK, and thanks."}}