{"id":5941,"date":"2012-09-14T08:25:55","date_gmt":"2012-09-14T13:25:55","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=5941"},"modified":"2017-07-05T16:16:04","modified_gmt":"2017-07-05T20:16:04","slug":"j2objc","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2012\/09\/14\/j2objc\/","title":{"rendered":"J2ObjC"},"content":{"rendered":"<p><a href=\"https:\/\/code.google.com\/p\/j2objc\/\">Google<\/a> (via <a href=\"https:\/\/twitter.com\/Jury\/status\/246355399723343872\">Michael Jurewitz<\/a>):<\/p>\r\n<blockquote cite=\"https:\/\/code.google.com\/p\/j2objc\/\"><p>J2ObjC is an open-source command-line tool from Google that translates Java code to Objective-C for the iOS (iPhone\/iPad) platform. This tool enables Java code to be part of an iOS application&rsquo;s build, as no editing of the generated files is necessary. The goal is to write an app&rsquo;s non-UI code (such as data access, or application logic) in Java, which is then shared by web apps (using GWT), Android apps, and iOS apps.<\/p><\/blockquote>\r\n<p>There&rsquo;s some documentation about <a href=\"https:\/\/code.google.com\/p\/j2objc\/wiki\/DesignNotes\">how it works<\/a>, e.g. they implemented <a href=\"https:\/\/code.google.com\/p\/j2objc\/wiki\/Autoboxer\">auto boxing and unboxing<\/a> and translate <a href=\"https:\/\/code.google.com\/p\/j2objc\/wiki\/ParameterTypes\">overloaded Java methods<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Google (via Michael Jurewitz): J2ObjC is an open-source command-line tool from Google that translates Java code to Objective-C for the iOS (iPhone\/iPad) platform. This tool enables Java code to be part of an iOS application&rsquo;s build, as no editing of the generated files is necessary. The goal is to write an app&rsquo;s non-UI code (such [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[75,51,84,54,71],"class_list":["post-5941","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-developertool","tag-google","tag-java","tag-objective-c","tag-programming"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5941","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=5941"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5941\/revisions"}],"predecessor-version":[{"id":5943,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/5941\/revisions\/5943"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=5941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=5941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=5941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}