{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/5252","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/5252/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/5252/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/5252/events","html_url":"https://github.com/jruby/jruby/issues/5252","id":341475782,"node_id":"MDU6SXNzdWUzNDE0NzU3ODI=","number":5252,"title":"can't use Date.iso8601 with a string subclass","user":{"login":"ahorek","id":9540855,"node_id":"MDQ6VXNlcjk1NDA4NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9540855?v=4","gravatar_id":"","url":"https://api.github.com/users/ahorek","html_url":"https://github.com/ahorek","followers_url":"https://api.github.com/users/ahorek/followers","following_url":"https://api.github.com/users/ahorek/following{/other_user}","gists_url":"https://api.github.com/users/ahorek/gists{/gist_id}","starred_url":"https://api.github.com/users/ahorek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahorek/subscriptions","organizations_url":"https://api.github.com/users/ahorek/orgs","repos_url":"https://api.github.com/users/ahorek/repos","events_url":"https://api.github.com/users/ahorek/events{/privacy}","received_events_url":"https://api.github.com/users/ahorek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"kares","id":45967,"node_id":"MDQ6VXNlcjQ1OTY3","avatar_url":"https://avatars0.githubusercontent.com/u/45967?v=4","gravatar_id":"","url":"https://api.github.com/users/kares","html_url":"https://github.com/kares","followers_url":"https://api.github.com/users/kares/followers","following_url":"https://api.github.com/users/kares/following{/other_user}","gists_url":"https://api.github.com/users/kares/gists{/gist_id}","starred_url":"https://api.github.com/users/kares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kares/subscriptions","organizations_url":"https://api.github.com/users/kares/orgs","repos_url":"https://api.github.com/users/kares/repos","events_url":"https://api.github.com/users/kares/events{/privacy}","received_events_url":"https://api.github.com/users/kares/received_events","type":"User","site_admin":false},"assignees":[{"login":"kares","id":45967,"node_id":"MDQ6VXNlcjQ1OTY3","avatar_url":"https://avatars0.githubusercontent.com/u/45967?v=4","gravatar_id":"","url":"https://api.github.com/users/kares","html_url":"https://github.com/kares","followers_url":"https://api.github.com/users/kares/followers","following_url":"https://api.github.com/users/kares/following{/other_user}","gists_url":"https://api.github.com/users/kares/gists{/gist_id}","starred_url":"https://api.github.com/users/kares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kares/subscriptions","organizations_url":"https://api.github.com/users/kares/orgs","repos_url":"https://api.github.com/users/kares/repos","events_url":"https://api.github.com/users/kares/events{/privacy}","received_events_url":"https://api.github.com/users/kares/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2018-07-16T11:06:13Z","updated_at":"2018-07-16T14:31:16Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Environment\r\n\r\njruby 9.2.1.0-SNAPSHOT (2.5.0) 2018-07-15 8833646 Java HotSpot(TM) 64-Bit Server VM 10.0.1+10 on 10.0.1+10 +jit [mswin32-x86_64]\r\n\r\n### Expected Behavior\r\n```\r\nrequire 'date'\r\nclass StringSubclass < String; end\r\nDate.iso8601(StringSubclass.new(\"-4712-01-01\"))\r\n```\r\n #<Date: -4712-01-01 ((0j,0s,0n),+0s,2299161j)>\r\n\r\n### Actual Behavior\r\nnever ends\r\n\r\nspec https://github.com/ruby/spec/pull/612"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/405267142","html_url":"https://github.com/jruby/jruby/issues/5252#issuecomment-405267142","issue_url":"https://api.github.com/repos/jruby/jruby/issues/5252","id":405267142,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTI2NzE0Mg==","user":{"login":"ahorek","id":9540855,"node_id":"MDQ6VXNlcjk1NDA4NTU=","avatar_url":"https://avatars2.githubusercontent.com/u/9540855?v=4","gravatar_id":"","url":"https://api.github.com/users/ahorek","html_url":"https://github.com/ahorek","followers_url":"https://api.github.com/users/ahorek/followers","following_url":"https://api.github.com/users/ahorek/following{/other_user}","gists_url":"https://api.github.com/users/ahorek/gists{/gist_id}","starred_url":"https://api.github.com/users/ahorek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahorek/subscriptions","organizations_url":"https://api.github.com/users/ahorek/orgs","repos_url":"https://api.github.com/users/ahorek/repos","events_url":"https://api.github.com/users/ahorek/events{/privacy}","received_events_url":"https://api.github.com/users/ahorek/received_events","type":"User","site_admin":false},"created_at":"2018-07-16T14:31:16Z","updated_at":"2018-07-16T14:31:16Z","author_association":"CONTRIBUTOR","body":"btw: only string class inheritance is relevant, we don't have to check other cases. I don't know if there's a better way how to do this without an if/else statement. Please advice.\r\n\r\nhttps://github.com/jruby/jruby/pull/5250 is still relevant, the original problem was a wrong exception class, later I found this."}}
{"actor":{"display_login":"ahorek"}}