{"action":"created","issue":{"url":"https://api.github.com/repos/google/j2objc/issues/624","labels_url":"https://api.github.com/repos/google/j2objc/issues/624/labels{/name}","comments_url":"https://api.github.com/repos/google/j2objc/issues/624/comments","events_url":"https://api.github.com/repos/google/j2objc/issues/624/events","html_url":"https://github.com/google/j2objc/issues/624","id":109461292,"number":624,"title":"An \"_init...\" issue","user":{"login":"Lukasz2891","id":7481970,"avatar_url":"https://avatars.githubusercontent.com/u/7481970?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukasz2891","html_url":"https://github.com/Lukasz2891","followers_url":"https://api.github.com/users/Lukasz2891/followers","following_url":"https://api.github.com/users/Lukasz2891/following{/other_user}","gists_url":"https://api.github.com/users/Lukasz2891/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukasz2891/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukasz2891/subscriptions","organizations_url":"https://api.github.com/users/Lukasz2891/orgs","repos_url":"https://api.github.com/users/Lukasz2891/repos","events_url":"https://api.github.com/users/Lukasz2891/events{/privacy}","received_events_url":"https://api.github.com/users/Lukasz2891/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-02T09:41:00Z","updated_at":"2015-10-02T14:09:06Z","closed_at":null,"body":"```\r\nj2objc-0.9.8.2\r\n```\r\n\r\nLet have:\r\n```java\r\npublic class TestClass {\r\n    public String initTest(){\r\n        return \"\";\r\n    }\r\n    public String _initTest(){\r\n        return \"\";\r\n    } \r\n}\r\n```\r\nThe Obj-C translated code is:\r\n```Obj-C\r\n...\r\n#pragma mark Public\r\n...\r\n- (NSString *)_initTest;\r\n- (NSString *)initTest OBJC_METHOD_FAMILY_NONE;\r\n...\r\n```\r\nThe first (and the first one only) method causes an compiler-error:\r\n```\r\nARC error: init methods must return a type related to the receiver type\r\n```\r\n\r\nIs there any way to workaround that?"},"comment":{"url":"https://api.github.com/repos/google/j2objc/issues/comments/145031699","html_url":"https://github.com/google/j2objc/issues/624#issuecomment-145031699","issue_url":"https://api.github.com/repos/google/j2objc/issues/624","id":145031699,"user":{"login":"tomball","id":2991279,"avatar_url":"https://avatars.githubusercontent.com/u/2991279?v=3","gravatar_id":"","url":"https://api.github.com/users/tomball","html_url":"https://github.com/tomball","followers_url":"https://api.github.com/users/tomball/followers","following_url":"https://api.github.com/users/tomball/following{/other_user}","gists_url":"https://api.github.com/users/tomball/gists{/gist_id}","starred_url":"https://api.github.com/users/tomball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomball/subscriptions","organizations_url":"https://api.github.com/users/tomball/orgs","repos_url":"https://api.github.com/users/tomball/repos","events_url":"https://api.github.com/users/tomball/events{/privacy}","received_events_url":"https://api.github.com/users/tomball/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T14:09:06Z","updated_at":"2015-10-02T14:09:06Z","body":"We weren't aware of the \"drop leading underscores\" part of determining [method families](http://clang.llvm.org/docs/AutomaticReferenceCounting.html#method-families), but it's easy to add.\r\n\r\nUntil this is fixed, you can build with the -Wno-mismatched-method-attributes flag to turn off this warning."}}