{"action":"created","issue":{"url":"https://api.github.com/repos/cincheo/jsweet/issues/181","repository_url":"https://api.github.com/repos/cincheo/jsweet","labels_url":"https://api.github.com/repos/cincheo/jsweet/issues/181/labels{/name}","comments_url":"https://api.github.com/repos/cincheo/jsweet/issues/181/comments","events_url":"https://api.github.com/repos/cincheo/jsweet/issues/181/events","html_url":"https://github.com/cincheo/jsweet/issues/181","id":187278161,"number":181,"title":"minimal Class support","user":{"login":"hohwille","id":1923119,"avatar_url":"https://avatars.githubusercontent.com/u/1923119?v=3","gravatar_id":"","url":"https://api.github.com/users/hohwille","html_url":"https://github.com/hohwille","followers_url":"https://api.github.com/users/hohwille/followers","following_url":"https://api.github.com/users/hohwille/following{/other_user}","gists_url":"https://api.github.com/users/hohwille/gists{/gist_id}","starred_url":"https://api.github.com/users/hohwille/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hohwille/subscriptions","organizations_url":"https://api.github.com/users/hohwille/orgs","repos_url":"https://api.github.com/users/hohwille/repos","events_url":"https://api.github.com/users/hohwille/events{/privacy}","received_events_url":"https://api.github.com/users/hohwille/received_events","type":"User","site_admin":false},"labels":[{"id":198570996,"url":"https://api.github.com/repos/cincheo/jsweet/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-11-04T08:34:17Z","updated_at":"2016-11-04T09:31:40Z","closed_at":null,"body":"In Java you have things like reflection with Type and Class. Just like GWT I understand the JSweet never wants to support reflection and that is for good reason (requires ultra complex and heavyweight JVM emulation). However, all this approach to write client code in Java is IMHO also about reuse of code on server AND client. If you as JSweet makes disagree on this please let me know.\r\n\r\nIn Java it is very common to have code doing things like getClass(). E.g. assume just to call getSimpleName() on the class object. In TypeScript you also have classes and internally there are prototypes so it should be possible to create a minimal shim to support basic things. E.g. for GWT I wrote an implementation of SLF4J that works in the browser and can redirect to `console.log` or collect the logs and send them in chunks to the server or whatever you want.\r\nWould this possible as a JSweet Candy?\r\nJSweet would have to be able to compile code like\r\n```\r\nprivate static final Logger LOG = LoggerFactory.getLogger(MyClass.class);\r\n```\r\n\r\nIf I have expectations that contradict the JSweet philosophy then let me know. Otherwise if there could be a plan how to allow this (maybe even optionally if it would impact the footprint) please let me know. I would also actively support e.g. with PRs if I get some hints and spots where to get started."},"comment":{"url":"https://api.github.com/repos/cincheo/jsweet/issues/comments/258382055","html_url":"https://github.com/cincheo/jsweet/issues/181#issuecomment-258382055","issue_url":"https://api.github.com/repos/cincheo/jsweet/issues/181","id":258382055,"user":{"login":"renaudpawlak","id":6288061,"avatar_url":"https://avatars.githubusercontent.com/u/6288061?v=3","gravatar_id":"","url":"https://api.github.com/users/renaudpawlak","html_url":"https://github.com/renaudpawlak","followers_url":"https://api.github.com/users/renaudpawlak/followers","following_url":"https://api.github.com/users/renaudpawlak/following{/other_user}","gists_url":"https://api.github.com/users/renaudpawlak/gists{/gist_id}","starred_url":"https://api.github.com/users/renaudpawlak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renaudpawlak/subscriptions","organizations_url":"https://api.github.com/users/renaudpawlak/orgs","repos_url":"https://api.github.com/users/renaudpawlak/repos","events_url":"https://api.github.com/users/renaudpawlak/events{/privacy}","received_events_url":"https://api.github.com/users/renaudpawlak/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T09:31:40Z","updated_at":"2016-11-04T09:31:40Z","body":"It looks like you are compiling with Maven. I was using the Eclipse plugin. Which version of the Maven plugin are you using? Make sure you use the 1.2.0-SNAPSHOT to get the latest features."}}
{"actor":{"display_login":"renaudpawlak"}}