{"action":"created","issue":{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/82","labels_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/82/comments","events_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/82/events","html_url":"https://github.com/SINTEF-9012/ThingML/issues/82","id":88714663,"number":82,"title":"java_type in JS compiler","user":{"login":"lmouline","id":2489384,"avatar_url":"https://avatars.githubusercontent.com/u/2489384?v=3","gravatar_id":"","url":"https://api.github.com/users/lmouline","html_url":"https://github.com/lmouline","followers_url":"https://api.github.com/users/lmouline/followers","following_url":"https://api.github.com/users/lmouline/following{/other_user}","gists_url":"https://api.github.com/users/lmouline/gists{/gist_id}","starred_url":"https://api.github.com/users/lmouline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmouline/subscriptions","organizations_url":"https://api.github.com/users/lmouline/orgs","repos_url":"https://api.github.com/users/lmouline/repos","events_url":"https://api.github.com/users/lmouline/events{/privacy}","received_events_url":"https://api.github.com/users/lmouline/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/labels/Compilers","name":"Compilers","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-16T12:36:21Z","updated_at":"2015-06-16T16:50:43Z","closed_at":null,"body":"In the JSMainGenerator class, there is : \r\n\r\n```\r\npublic static String getDefaultValue(Type type) {\r\n        if (type.isDefined(\"java_type\", \"boolean\"))\r\n            return \"false\";\r\n        else if (type.isDefined(\"java_type\", \"int\"))\r\n            return \"0\";\r\n        else if (type.isDefined(\"java_type\", \"long\"))\r\n            return \"0\";\r\n        else if (type.isDefined(\"java_type\", \"float\"))\r\n            return \"0.0f\";\r\n        else if (type.isDefined(\"java_type\", \"double\"))\r\n            return \"0.0d\";\r\n        else if (type.isDefined(\"java_type\", \"byte\"))\r\n            return \"0\";\r\n        else if (type.isDefined(\"java_type\", \"short\"))\r\n            return \"0\";\r\n        else if (type.isDefined(\"java_type\", \"char\"))\r\n            return \"'\\u0000'\";\r\n        else\r\n            return \"null\";\r\n    }\r\n```\r\n\r\nIs it supposed to be this way? It should be \"js_type\", right?"},"comment":{"url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/comments/112495255","html_url":"https://github.com/SINTEF-9012/ThingML/issues/82#issuecomment-112495255","issue_url":"https://api.github.com/repos/SINTEF-9012/ThingML/issues/82","id":112495255,"user":{"login":"brice-morin","id":576169,"avatar_url":"https://avatars.githubusercontent.com/u/576169?v=3","gravatar_id":"","url":"https://api.github.com/users/brice-morin","html_url":"https://github.com/brice-morin","followers_url":"https://api.github.com/users/brice-morin/followers","following_url":"https://api.github.com/users/brice-morin/following{/other_user}","gists_url":"https://api.github.com/users/brice-morin/gists{/gist_id}","starred_url":"https://api.github.com/users/brice-morin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brice-morin/subscriptions","organizations_url":"https://api.github.com/users/brice-morin/orgs","repos_url":"https://api.github.com/users/brice-morin/repos","events_url":"https://api.github.com/users/brice-morin/events{/privacy}","received_events_url":"https://api.github.com/users/brice-morin/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T16:50:43Z","updated_at":"2015-06-16T16:50:43Z","body":"Yes, we should indeed. But it is not a big deal. You can fix it :-)"}}