{"action":"closed","issue":{"url":"https://api.github.com/repos/czyzby/gdx-lml/issues/29","repository_url":"https://api.github.com/repos/czyzby/gdx-lml","labels_url":"https://api.github.com/repos/czyzby/gdx-lml/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/czyzby/gdx-lml/issues/29/comments","events_url":"https://api.github.com/repos/czyzby/gdx-lml/issues/29/events","html_url":"https://github.com/czyzby/gdx-lml/issues/29","id":169826932,"number":29,"title":"SelectBoxLmlTag forces to use only strings for items","user":{"login":"metaphore","id":6159734,"avatar_url":"https://avatars.githubusercontent.com/u/6159734?v=3","gravatar_id":"","url":"https://api.github.com/users/metaphore","html_url":"https://github.com/metaphore","followers_url":"https://api.github.com/users/metaphore/followers","following_url":"https://api.github.com/users/metaphore/following{/other_user}","gists_url":"https://api.github.com/users/metaphore/gists{/gist_id}","starred_url":"https://api.github.com/users/metaphore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/metaphore/subscriptions","organizations_url":"https://api.github.com/users/metaphore/orgs","repos_url":"https://api.github.com/users/metaphore/repos","events_url":"https://api.github.com/users/metaphore/events{/privacy}","received_events_url":"https://api.github.com/users/metaphore/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/czyzby/gdx-lml/labels/bug","name":"bug","color":"1d76db"},{"url":"https://api.github.com/repos/czyzby/gdx-lml/labels/lml","name":"lml","color":"0e8a16"}],"state":"closed","locked":false,"assignee":{"login":"czyzby","id":11707612,"avatar_url":"https://avatars.githubusercontent.com/u/11707612?v=3","gravatar_id":"","url":"https://api.github.com/users/czyzby","html_url":"https://github.com/czyzby","followers_url":"https://api.github.com/users/czyzby/followers","following_url":"https://api.github.com/users/czyzby/following{/other_user}","gists_url":"https://api.github.com/users/czyzby/gists{/gist_id}","starred_url":"https://api.github.com/users/czyzby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czyzby/subscriptions","organizations_url":"https://api.github.com/users/czyzby/orgs","repos_url":"https://api.github.com/users/czyzby/repos","events_url":"https://api.github.com/users/czyzby/events{/privacy}","received_events_url":"https://api.github.com/users/czyzby/received_events","type":"User","site_admin":false},"assignees":[{"login":"czyzby","id":11707612,"avatar_url":"https://avatars.githubusercontent.com/u/11707612?v=3","gravatar_id":"","url":"https://api.github.com/users/czyzby","html_url":"https://github.com/czyzby","followers_url":"https://api.github.com/users/czyzby/followers","following_url":"https://api.github.com/users/czyzby/following{/other_user}","gists_url":"https://api.github.com/users/czyzby/gists{/gist_id}","starred_url":"https://api.github.com/users/czyzby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czyzby/subscriptions","organizations_url":"https://api.github.com/users/czyzby/orgs","repos_url":"https://api.github.com/users/czyzby/repos","events_url":"https://api.github.com/users/czyzby/events{/privacy}","received_events_url":"https://api.github.com/users/czyzby/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/czyzby/gdx-lml/milestones/4","html_url":"https://github.com/czyzby/gdx-lml/milestones/1.8","labels_url":"https://api.github.com/repos/czyzby/gdx-lml/milestones/4/labels","id":1790233,"number":4,"title":"1.8","description":null,"creator":{"login":"czyzby","id":11707612,"avatar_url":"https://avatars.githubusercontent.com/u/11707612?v=3","gravatar_id":"","url":"https://api.github.com/users/czyzby","html_url":"https://github.com/czyzby","followers_url":"https://api.github.com/users/czyzby/followers","following_url":"https://api.github.com/users/czyzby/following{/other_user}","gists_url":"https://api.github.com/users/czyzby/gists{/gist_id}","starred_url":"https://api.github.com/users/czyzby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/czyzby/subscriptions","organizations_url":"https://api.github.com/users/czyzby/orgs","repos_url":"https://api.github.com/users/czyzby/repos","events_url":"https://api.github.com/users/czyzby/events{/privacy}","received_events_url":"https://api.github.com/users/czyzby/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":1,"state":"open","created_at":"2016-05-26T15:36:16Z","updated_at":"2016-08-11T19:15:49Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2016-08-08T01:09:35Z","updated_at":"2016-08-11T19:15:50Z","closed_at":"2016-08-11T19:15:49Z","body":"I'm trying to unify some filling code for ```VisSelectBox```  in my LML.\r\nLike so:\r\n```\r\n<visselectbox>\r\n    <:evaluate method=\"fillWithItems\" id=\"selectBox\"/>\r\n</visselectbox>\r\n```\r\n\r\nAnd action looks like this:\r\n```\r\n@LmlAction(\"fillWithItems\")\r\npublic void fillWithItems(VisSelectBox selectBox) {\r\n    Array<Item> items= new Array<>();\r\n    // Fill items with objects ...\r\n    selectBox.setItems(array);\r\n}\r\n```\r\n\r\nThe problem comes from parser that calls ```SelectBoxLmlTag#doOnTagClose()```, precisely next line:\r\n```\r\n// Forcing items update.\r\ngetSelectBox().setItems((String[]) getSelectBox().getItems().toArray(String.class));\r\n```\r\nand I get ```java.lang.ArrayStoreException```.\r\n\r\nI want to reference real objects and not plain strings letter. Maybe I'm wrong at something and should use another approach to fill my collection based widgets with same data?\r\n\r\nThanks!"}}
{"actor":{"display_login":"czyzby"}}