{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2995","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2995/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2995/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2995/events","html_url":"https://github.com/jruby/jruby/issues/2995","id":81359656,"number":2995,"title":"Hash behaves differently when used with FFI::Pointer","user":{"login":"testors","id":8230547,"avatar_url":"https://avatars.githubusercontent.com/u/8230547?v=3","gravatar_id":"","url":"https://api.github.com/users/testors","html_url":"https://github.com/testors","followers_url":"https://api.github.com/users/testors/followers","following_url":"https://api.github.com/users/testors/following{/other_user}","gists_url":"https://api.github.com/users/testors/gists{/gist_id}","starred_url":"https://api.github.com/users/testors/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/testors/subscriptions","organizations_url":"https://api.github.com/users/testors/orgs","repos_url":"https://api.github.com/users/testors/repos","events_url":"https://api.github.com/users/testors/events{/privacy}","received_events_url":"https://api.github.com/users/testors/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-27T09:07:35Z","updated_at":"2015-05-28T20:03:20Z","closed_at":null,"body":"```\r\n[testors@macpro:~/Work/ruby-shooter]$ ruby -v\r\nruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-darwin14]\r\n\r\n[testors@macpro:~/Work/ruby-shooter]$ jruby -v\r\njruby 9.0.0.0.pre2 (2.2.2) 2015-04-28 2755ae0 Java HotSpot(TM) 64-Bit Server VM 25.5-b02 on 1.8.0_05-b13 +jit [darwin-x86_64]\r\n\r\n[testors@macpro:/opt/jruby9k/lib/ruby/stdlib]$ irb\r\nirb(main):001:0> require 'ffi'\r\n=> true\r\nirb(main):002:0> a = FFI::Pointer.new(0)\r\n=> #<FFI::Pointer address=0x00000000000000>\r\nirb(main):003:0> b = FFI::Pointer.new(0)\r\n=> #<FFI::Pointer address=0x00000000000000>\r\nirb(main):004:0> a.eql? b\r\n=> false\r\nirb(main):005:0> Hash[a,true][b]\r\n=> nil\r\n\r\n[testors@macpro:~/Work/ruby-shooter]$ jirb\r\nirb(main):001:0> a = FFI::Pointer.new(0)\r\n=> #<FFI::Pointer address=0x0>\r\nirb(main):002:0> b = FFI::Pointer.new(0)\r\n=> #<FFI::Pointer address=0x0>\r\nirb(main):003:0> a.eql? b\r\n=> false\r\nirb(main):004:0> Hash[a,true][b]\r\n=> true\r\n```"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/106581703","html_url":"https://github.com/jruby/jruby/issues/2995#issuecomment-106581703","issue_url":"https://api.github.com/repos/jruby/jruby/issues/2995","id":106581703,"user":{"login":"headius","id":10135,"avatar_url":"https://avatars.githubusercontent.com/u/10135?v=3","gravatar_id":"","url":"https://api.github.com/users/headius","html_url":"https://github.com/headius","followers_url":"https://api.github.com/users/headius/followers","following_url":"https://api.github.com/users/headius/following{/other_user}","gists_url":"https://api.github.com/users/headius/gists{/gist_id}","starred_url":"https://api.github.com/users/headius/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/headius/subscriptions","organizations_url":"https://api.github.com/users/headius/orgs","repos_url":"https://api.github.com/users/headius/repos","events_url":"https://api.github.com/users/headius/events{/privacy}","received_events_url":"https://api.github.com/users/headius/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T20:03:20Z","updated_at":"2015-05-28T20:03:20Z","body":"Must be a difference in how FFI::Pointer does hash or eql?. Checking."}}