{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/j2me.js/issues/853","labels_url":"https://api.github.com/repos/mozilla/j2me.js/issues/853/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/j2me.js/issues/853/comments","events_url":"https://api.github.com/repos/mozilla/j2me.js/issues/853/events","html_url":"https://github.com/mozilla/j2me.js/issues/853","id":54389272,"number":853,"title":"Move natives to new bindings","user":{"login":"brendandahl","id":942640,"avatar_url":"https://avatars.githubusercontent.com/u/942640?v=3","gravatar_id":"","url":"https://api.github.com/users/brendandahl","html_url":"https://github.com/brendandahl","followers_url":"https://api.github.com/users/brendandahl/followers","following_url":"https://api.github.com/users/brendandahl/following{/other_user}","gists_url":"https://api.github.com/users/brendandahl/gists{/gist_id}","starred_url":"https://api.github.com/users/brendandahl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brendandahl/subscriptions","organizations_url":"https://api.github.com/users/brendandahl/orgs","repos_url":"https://api.github.com/users/brendandahl/repos","events_url":"https://api.github.com/users/brendandahl/events{/privacy}","received_events_url":"https://api.github.com/users/brendandahl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mozilla/j2me.js/labels/follow%20up","name":"follow up","color":"fef2c0"},{"url":"https://api.github.com/repos/mozilla/j2me.js/labels/memshrink","name":"memshrink","color":"009800"},{"url":"https://api.github.com/repos/mozilla/j2me.js/labels/startup","name":"startup","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-14T22:56:26Z","updated_at":"2015-05-12T01:20:16Z","closed_at":null,"body":"Move natives and overrides to new bindings\r\n\r\nThis can probably split into multiple parts:\r\n1) Move code out of bindings.ts and create a new bindings folder that mimics the java folder structure.\r\n2) Move native functions over to the new binding files. (see below)\r\n3) Fix natives to use the new field bindings. i.e. Remove all uses of getField in natives and directly use `javaScriptFieldName` on the object or static object.\r\n\r\nExample\r\n```js\r\n\"java/lang/Object\": {\r\n  native: {\r\n    \"hashCode.()I\": function (): number {\r\n      var self: J2ME.java.lang.Object = this;\r\n      if (self._hashCode) {\r\n        return self._hashCode;\r\n      }\r\n      return self._hashCode = $.nextHashCode();\r\n    }\r\n  },\r\n  fields: {\r\n    staticSymbols: {\r\n      \"javaFieldName\": \"javaScriptFieldName\" \r\n    },\r\n    instanceSymbols: {\r\n      \"javaFieldName\": \"javaScriptFieldName\"\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/mozilla/j2me.js/issues/comments/101089297","html_url":"https://github.com/mozilla/j2me.js/issues/853#issuecomment-101089297","issue_url":"https://api.github.com/repos/mozilla/j2me.js/issues/853","id":101089297,"user":{"login":"marco-c","id":1616846,"avatar_url":"https://avatars.githubusercontent.com/u/1616846?v=3","gravatar_id":"","url":"https://api.github.com/users/marco-c","html_url":"https://github.com/marco-c","followers_url":"https://api.github.com/users/marco-c/followers","following_url":"https://api.github.com/users/marco-c/following{/other_user}","gists_url":"https://api.github.com/users/marco-c/gists{/gist_id}","starred_url":"https://api.github.com/users/marco-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marco-c/subscriptions","organizations_url":"https://api.github.com/users/marco-c/orgs","repos_url":"https://api.github.com/users/marco-c/repos","events_url":"https://api.github.com/users/marco-c/events{/privacy}","received_events_url":"https://api.github.com/users/marco-c/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T01:20:16Z","updated_at":"2015-05-12T01:20:16Z","body":"Overrides have been removed."}}