{"action":"created","issue":{"url":"https://api.github.com/repos/google/j2objc/issues/786","repository_url":"https://api.github.com/repos/google/j2objc","labels_url":"https://api.github.com/repos/google/j2objc/issues/786/labels{/name}","comments_url":"https://api.github.com/repos/google/j2objc/issues/786/comments","events_url":"https://api.github.com/repos/google/j2objc/issues/786/events","html_url":"https://github.com/google/j2objc/issues/786","id":174323695,"number":786,"title":"JRE missing sun.misc.Unsafe.copyMemory","user":{"login":"guyshefner","id":11444880,"avatar_url":"https://avatars.githubusercontent.com/u/11444880?v=3","gravatar_id":"","url":"https://api.github.com/users/guyshefner","html_url":"https://github.com/guyshefner","followers_url":"https://api.github.com/users/guyshefner/followers","following_url":"https://api.github.com/users/guyshefner/following{/other_user}","gists_url":"https://api.github.com/users/guyshefner/gists{/gist_id}","starred_url":"https://api.github.com/users/guyshefner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guyshefner/subscriptions","organizations_url":"https://api.github.com/users/guyshefner/orgs","repos_url":"https://api.github.com/users/guyshefner/repos","events_url":"https://api.github.com/users/guyshefner/events{/privacy}","received_events_url":"https://api.github.com/users/guyshefner/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-31T16:50:06Z","updated_at":"2016-08-31T18:11:20Z","closed_at":null,"body":"\r\nWhen attempting to translate the java source for the proto3 runtime, the following errors occur:\r\n\r\nerror: com/google/protobuf/UnsafeUtil.java:78: The method copyMemory(byte[], long, byte[], long, long) is undefined for the type Unsafe\r\nerror: com/google/protobuf/UnsafeUtil.java:98: The method copyMemory(long, long, long) is undefined for the type Unsafe\r\n\r\nIt seems the j2objc JRE emulation of sun.misc.Unsafe is missing an implementation of copyMemory.\r\n\r\nj2objc version is 1.1.\r\nprotobuf sources are from protobuf-java-3.0.0-sources.jar.\r\n"},"comment":{"url":"https://api.github.com/repos/google/j2objc/issues/comments/243851425","html_url":"https://github.com/google/j2objc/issues/786#issuecomment-243851425","issue_url":"https://api.github.com/repos/google/j2objc/issues/786","id":243851425,"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":"2016-08-31T18:11:20Z","updated_at":"2016-08-31T18:11:20Z","body":"It's easy to add these methods to [Unsafe.java](https://github.com/google/j2objc/blob/master/jre_emul/Classes/sun/misc/Unsafe.java), and [pull contributions are cheerfully accepted](http://j2objc.org/docs/Contributing.html).  I realize this is important to your project, but the priority of this API addition has to be lower than our current effort to bring jre_emul up to the Java 8 API. We can certainly get to these methods once that's done.\r\n\r\nBesides, those Google proto3 engineers shouldn't be using sun.misc.Unsafe, as javac tells them not to with each build. :-)"}}
{"actor":{"display_login":"tomball"}}