{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2418","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2418/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2418/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2418/events","html_url":"https://github.com/jruby/jruby/issues/2418","id":53311222,"number":2418,"title":"Float#equal? behaves differently from MRI in 2.0 mode","user":{"login":"mvz","id":10898,"avatar_url":"https://avatars.githubusercontent.com/u/10898?v=3","gravatar_id":"","url":"https://api.github.com/users/mvz","html_url":"https://github.com/mvz","followers_url":"https://api.github.com/users/mvz/followers","following_url":"https://api.github.com/users/mvz/following{/other_user}","gists_url":"https://api.github.com/users/mvz/gists{/gist_id}","starred_url":"https://api.github.com/users/mvz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvz/subscriptions","organizations_url":"https://api.github.com/users/mvz/orgs","repos_url":"https://api.github.com/users/mvz/repos","events_url":"https://api.github.com/users/mvz/events{/privacy}","received_events_url":"https://api.github.com/users/mvz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/beginner","name":"beginner","color":"bfd4f2"},{"url":"https://api.github.com/repos/jruby/jruby/labels/core","name":"core","color":"02e10c"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby+1.7.x","name":"JRuby 1.7.x","color":"eb6420"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby+9000","name":"JRuby 9000","color":"bfe5bf"},{"url":"https://api.github.com/repos/jruby/jruby/labels/ruby+2.0-2.2","name":"ruby 2.0-2.2","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/28","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/28/labels","id":857686,"number":28,"title":"JRuby 9.0.0.0-pre1","description":"Preview number 1 for JRuby 9k.","creator":{"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},"open_issues":5,"closed_issues":212,"state":"open","created_at":"2014-11-07T17:37:31Z","updated_at":"2015-01-14T22:13:43Z","due_on":"2014-11-18T08:00:00Z","closed_at":null},"comments":3,"created_at":"2015-01-03T18:23:06Z","updated_at":"2015-01-14T22:35:19Z","closed_at":null,"body":"Float#equal? changed behavior in MRI 2.0.0 wrt MRI 1.9.3. For identical values, the older MRI would return false. MRI 2.0 and up return true:\r\n\r\nMRI 1.9.3:\r\n```\r\n1.0.equal? 1.0\r\n=> false\r\n```\r\n\r\nMRI 2.0.0:\r\n```\r\n1.0.equal? 1.0\r\n=> true\r\n```\r\n\r\nJRuby returns false even in 2.0 mode."},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/70006394","html_url":"https://github.com/jruby/jruby/issues/2418#issuecomment-70006394","issue_url":"https://api.github.com/repos/jruby/jruby/issues/2418","id":70006394,"user":{"login":"enebo","id":19819,"avatar_url":"https://avatars.githubusercontent.com/u/19819?v=3","gravatar_id":"","url":"https://api.github.com/users/enebo","html_url":"https://github.com/enebo","followers_url":"https://api.github.com/users/enebo/followers","following_url":"https://api.github.com/users/enebo/following{/other_user}","gists_url":"https://api.github.com/users/enebo/gists{/gist_id}","starred_url":"https://api.github.com/users/enebo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/enebo/subscriptions","organizations_url":"https://api.github.com/users/enebo/orgs","repos_url":"https://api.github.com/users/enebo/repos","events_url":"https://api.github.com/users/enebo/events{/privacy}","received_events_url":"https://api.github.com/users/enebo/received_events","type":"User","site_admin":false},"created_at":"2015-01-14T22:35:19Z","updated_at":"2015-01-14T22:35:19Z","body":"Ruby 1.8.x used to allow floats to be modified via scale= and I suspect our logic reflects that it used to be a non-immediate value type."}}