{"action":"opened","issue":{"url":"https://api.github.com/repos/hridesh/panini/issues/130","repository_url":"https://api.github.com/repos/hridesh/panini","labels_url":"https://api.github.com/repos/hridesh/panini/issues/130/labels{/name}","comments_url":"https://api.github.com/repos/hridesh/panini/issues/130/comments","events_url":"https://api.github.com/repos/hridesh/panini/issues/130/events","html_url":"https://github.com/hridesh/panini/issues/130","id":133088950,"number":130,"title":"Imports arguments generation inconsistency","user":{"login":"eyhlin","id":1746841,"avatar_url":"https://avatars.githubusercontent.com/u/1746841?v=3","gravatar_id":"","url":"https://api.github.com/users/eyhlin","html_url":"https://github.com/eyhlin","followers_url":"https://api.github.com/users/eyhlin/followers","following_url":"https://api.github.com/users/eyhlin/following{/other_user}","gists_url":"https://api.github.com/users/eyhlin/gists{/gist_id}","starred_url":"https://api.github.com/users/eyhlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eyhlin/subscriptions","organizations_url":"https://api.github.com/users/eyhlin/orgs","repos_url":"https://api.github.com/users/eyhlin/repos","events_url":"https://api.github.com/users/eyhlin/events{/privacy}","received_events_url":"https://api.github.com/users/eyhlin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-11T21:12:56Z","updated_at":"2016-02-11T21:12:56Z","closed_at":null,"body":"The order of the arguments of the imports function generated by the processor is inconsistent to the order @Imports were defined.\r\n\r\nFor the capsule:\r\n```\r\n@Capsule\r\npublic class ImportTestTemplate {\r\n\t@Imports int[] z;\r\n\t@Imports int b;\r\n\t@Imports double a;\r\n}\r\n```\r\nThe generated class:\r\n```\r\n@CapsuleThread\r\npublic class ImportTest$Thread extends Capsule$Thread implements ImportTest\r\n{\r\n    private helloWorld.ImportTestTemplate panini$encapsulated = new helloWorld.ImportTestTemplate();\r\n    \r\n    public void imports(double a, int b, int[] z) {\r\n        panini$encapsulated.a = a;\r\n        panini$encapsulated.b = b;\r\n        panini$encapsulated.z = z;\r\n    }\r\n```\r\nHas the order reordered in the imports function.\r\n(I'm not sure, but it seems that they might be re-ordered in lexical order.)"}}