{"action":"created","issue":{"url":"https://api.github.com/repos/EsfingeFramework/liveprog/issues/5","repository_url":"https://api.github.com/repos/EsfingeFramework/liveprog","labels_url":"https://api.github.com/repos/EsfingeFramework/liveprog/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/EsfingeFramework/liveprog/issues/5/comments","events_url":"https://api.github.com/repos/EsfingeFramework/liveprog/issues/5/events","html_url":"https://github.com/EsfingeFramework/liveprog/issues/5","id":350165537,"node_id":"MDU6SXNzdWUzNTAxNjU1Mzc=","number":5,"title":"Substituição dinâmica de atributos do mesmo tipo da classe dinâmica","user":{"login":"vinipaschoal","id":8387623,"node_id":"MDQ6VXNlcjgzODc2MjM=","avatar_url":"https://avatars1.githubusercontent.com/u/8387623?v=4","gravatar_id":"","url":"https://api.github.com/users/vinipaschoal","html_url":"https://github.com/vinipaschoal","followers_url":"https://api.github.com/users/vinipaschoal/followers","following_url":"https://api.github.com/users/vinipaschoal/following{/other_user}","gists_url":"https://api.github.com/users/vinipaschoal/gists{/gist_id}","starred_url":"https://api.github.com/users/vinipaschoal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vinipaschoal/subscriptions","organizations_url":"https://api.github.com/users/vinipaschoal/orgs","repos_url":"https://api.github.com/users/vinipaschoal/repos","events_url":"https://api.github.com/users/vinipaschoal/events{/privacy}","received_events_url":"https://api.github.com/users/vinipaschoal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-13T19:41:08Z","updated_at":"2018-08-14T10:52:16Z","closed_at":null,"author_association":"NONE","body":"Casos a serem estudados/verificados:\r\n\r\n- quando a classe dinâmica possui um atributo do mesmo tipo da classe;\r\n\r\n- quando a classe dinâmica possui classes internas;\r\n\r\n- quando a classe dinâmica possui anotações que fazem referência à própria classe ou à uma classe interna da classe dinâmica.\r\n\r\nVerificar se o ASM consegue encontrar todos esses casos.\r\nVerificar se o ASM consegue resolver esses casos, substituindo o nome da classe antiga pela nova versão da classe.\r\n\r\n\r\n```\r\n@LiveClass\r\npublic class ClasseD\r\n{\r\n\tprivate ClasseD classeD;\r\n\r\n\t@Property(converter=FloatConverter.class)\r\n\tprivate Float idade;\r\n\t\r\n\tpublic class FloatConverter implements IPropertyConverter\r\n\t{\r\n\t\tpublic Object convert(Object obj)\r\n\t\t{\r\n\t\t\tif ( obj instanceof Integer )\r\n\t\t\t\treturn ((Integer) obj).floatValue();\r\n\t\t\t\r\n\t\t\treturn obj;\r\n\t\t}\r\n\t}\r\n}\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/EsfingeFramework/liveprog/issues/comments/412832530","html_url":"https://github.com/EsfingeFramework/liveprog/issues/5#issuecomment-412832530","issue_url":"https://api.github.com/repos/EsfingeFramework/liveprog/issues/5","id":412832530,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMjgzMjUzMA==","user":{"login":"guerraem","id":907905,"node_id":"MDQ6VXNlcjkwNzkwNQ==","avatar_url":"https://avatars3.githubusercontent.com/u/907905?v=4","gravatar_id":"","url":"https://api.github.com/users/guerraem","html_url":"https://github.com/guerraem","followers_url":"https://api.github.com/users/guerraem/followers","following_url":"https://api.github.com/users/guerraem/following{/other_user}","gists_url":"https://api.github.com/users/guerraem/gists{/gist_id}","starred_url":"https://api.github.com/users/guerraem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guerraem/subscriptions","organizations_url":"https://api.github.com/users/guerraem/orgs","repos_url":"https://api.github.com/users/guerraem/repos","events_url":"https://api.github.com/users/guerraem/events{/privacy}","received_events_url":"https://api.github.com/users/guerraem/received_events","type":"User","site_admin":false},"created_at":"2018-08-14T10:52:16Z","updated_at":"2018-08-14T10:52:16Z","author_association":"MEMBER","body":"Acho válido que em um primeiro momento crie-se algumas limitações nas classes que poderão ser substituídas. No caso, \"não possuir classes internas\" poderia ser uma dessas limitações."}}
{"actor":{"display_login":"guerraem"}}