{"action":"created","issue":{"url":"https://api.github.com/repos/golang/go/issues/11421","labels_url":"https://api.github.com/repos/golang/go/issues/11421/labels{/name}","comments_url":"https://api.github.com/repos/golang/go/issues/11421/comments","events_url":"https://api.github.com/repos/golang/go/issues/11421/events","html_url":"https://github.com/golang/go/issues/11421","id":91282577,"number":11421,"title":"x/mobile/bind/java: mapping 'int' type for java","user":{"login":"hyangah","id":4999471,"avatar_url":"https://avatars.githubusercontent.com/u/4999471?v=3","gravatar_id":"","url":"https://api.github.com/users/hyangah","html_url":"https://github.com/hyangah","followers_url":"https://api.github.com/users/hyangah/followers","following_url":"https://api.github.com/users/hyangah/following{/other_user}","gists_url":"https://api.github.com/users/hyangah/gists{/gist_id}","starred_url":"https://api.github.com/users/hyangah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyangah/subscriptions","organizations_url":"https://api.github.com/users/hyangah/orgs","repos_url":"https://api.github.com/users/hyangah/repos","events_url":"https://api.github.com/users/hyangah/events{/privacy}","received_events_url":"https://api.github.com/users/hyangah/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/golang/go/milestones/24","html_url":"https://github.com/golang/go/milestones/Go1.6","labels_url":"https://api.github.com/repos/golang/go/milestones/24/labels","id":1096159,"number":24,"title":"Go1.6","description":"","creator":{"login":"josharian","id":67496,"avatar_url":"https://avatars.githubusercontent.com/u/67496?v=3","gravatar_id":"","url":"https://api.github.com/users/josharian","html_url":"https://github.com/josharian","followers_url":"https://api.github.com/users/josharian/followers","following_url":"https://api.github.com/users/josharian/following{/other_user}","gists_url":"https://api.github.com/users/josharian/gists{/gist_id}","starred_url":"https://api.github.com/users/josharian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josharian/subscriptions","organizations_url":"https://api.github.com/users/josharian/orgs","repos_url":"https://api.github.com/users/josharian/repos","events_url":"https://api.github.com/users/josharian/events{/privacy}","received_events_url":"https://api.github.com/users/josharian/received_events","type":"User","site_admin":false},"open_issues":138,"closed_issues":8,"state":"open","created_at":"2015-05-05T02:39:06Z","updated_at":"2015-06-26T15:47:42Z","due_on":"2016-01-31T08:00:00Z","closed_at":null},"comments":1,"created_at":"2015-06-26T15:39:29Z","updated_at":"2015-06-26T15:54:09Z","closed_at":null,"body":"Go's int type size is platform dependent.\r\nJava's int type is always 32bit. \r\nGobind currently maps 'int' to 'long' type to have a consistent api while dealing with 64bit values that may return from Go. \r\n\r\nOn 32bit platform this can be problematic if the Java API passes larger than the 32bit int max. Generating a different API depending on the platform is not an option, but we need a way to limit the value that can be passed into Go depending on the platform.\r\n"},"comment":{"url":"https://api.github.com/repos/golang/go/issues/comments/115738978","html_url":"https://github.com/golang/go/issues/11421#issuecomment-115738978","issue_url":"https://api.github.com/repos/golang/go/issues/11421","id":115738978,"user":{"login":"dr2chase","id":1928999,"avatar_url":"https://avatars.githubusercontent.com/u/1928999?v=3","gravatar_id":"","url":"https://api.github.com/users/dr2chase","html_url":"https://github.com/dr2chase","followers_url":"https://api.github.com/users/dr2chase/followers","following_url":"https://api.github.com/users/dr2chase/following{/other_user}","gists_url":"https://api.github.com/users/dr2chase/gists{/gist_id}","starred_url":"https://api.github.com/users/dr2chase/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dr2chase/subscriptions","organizations_url":"https://api.github.com/users/dr2chase/orgs","repos_url":"https://api.github.com/users/dr2chase/repos","events_url":"https://api.github.com/users/dr2chase/events{/privacy}","received_events_url":"https://api.github.com/users/dr2chase/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T15:54:09Z","updated_at":"2015-06-26T15:54:09Z","body":"Can we simply use int32 and int64?  Those will never be wrong, and we really ought not be encouraging use of \"int\" where the size matters."}}