{"action":"created","issue":{"url":"https://api.github.com/repos/RoboBinding/RoboBinding/issues/221","labels_url":"https://api.github.com/repos/RoboBinding/RoboBinding/issues/221/labels{/name}","comments_url":"https://api.github.com/repos/RoboBinding/RoboBinding/issues/221/comments","events_url":"https://api.github.com/repos/RoboBinding/RoboBinding/issues/221/events","html_url":"https://github.com/RoboBinding/RoboBinding/issues/221","id":93458935,"number":221,"title":"Imports in generated code disappear when a custom class is bound more than once","user":{"login":"gstepniewski","id":424327,"avatar_url":"https://avatars.githubusercontent.com/u/424327?v=3","gravatar_id":"","url":"https://api.github.com/users/gstepniewski","html_url":"https://github.com/gstepniewski","followers_url":"https://api.github.com/users/gstepniewski/followers","following_url":"https://api.github.com/users/gstepniewski/following{/other_user}","gists_url":"https://api.github.com/users/gstepniewski/gists{/gist_id}","starred_url":"https://api.github.com/users/gstepniewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gstepniewski/subscriptions","organizations_url":"https://api.github.com/users/gstepniewski/orgs","repos_url":"https://api.github.com/users/gstepniewski/repos","events_url":"https://api.github.com/users/gstepniewski/events{/privacy}","received_events_url":"https://api.github.com/users/gstepniewski/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-07-07T07:21:07Z","updated_at":"2015-07-29T09:21:42Z","closed_at":"2015-07-29T09:21:42Z","body":"Consider the following case:\r\n\r\nYou have a custom View and a Robobinding Attribute which operates on a custom class (say a button which has two images and the class will hold two different id's). Everything works properly when you have only one such property in your ViewModel, but as soon as you add another compilation fails with \"cannot find symbol CustomClass\" in the generated code.\r\n\r\nA workaround for this is to have the binding work on a generic wrapping the custom class (List<>, Optional<>) etc, but it's not ideal as you either need to always use generics for custom attributes or be ready to refactor as soon as you need to use another custom View in your layout."},"comment":{"url":"https://api.github.com/repos/RoboBinding/RoboBinding/issues/comments/125889977","html_url":"https://github.com/RoboBinding/RoboBinding/issues/221#issuecomment-125889977","issue_url":"https://api.github.com/repos/RoboBinding/RoboBinding/issues/221","id":125889977,"user":{"login":"gstepniewski","id":424327,"avatar_url":"https://avatars.githubusercontent.com/u/424327?v=3","gravatar_id":"","url":"https://api.github.com/users/gstepniewski","html_url":"https://github.com/gstepniewski","followers_url":"https://api.github.com/users/gstepniewski/followers","following_url":"https://api.github.com/users/gstepniewski/following{/other_user}","gists_url":"https://api.github.com/users/gstepniewski/gists{/gist_id}","starred_url":"https://api.github.com/users/gstepniewski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gstepniewski/subscriptions","organizations_url":"https://api.github.com/users/gstepniewski/orgs","repos_url":"https://api.github.com/users/gstepniewski/repos","events_url":"https://api.github.com/users/gstepniewski/events{/privacy}","received_events_url":"https://api.github.com/users/gstepniewski/received_events","type":"User","site_admin":false},"created_at":"2015-07-29T09:21:42Z","updated_at":"2015-07-29T09:21:42Z","body":"The project CustomClassMultiBindings builds properly now.\r\nClosing issue.\r\n\r\nMy other project uses dependencies:\r\n`compile 'org.robobinding:robobinding:0.8.9'\r\napt 'org.robobinding:codegen:0.8.9'`\r\nWhat should I update them to in order to get the fix?"}}