{"action":"created","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/3734","repository_url":"https://api.github.com/repos/jruby/jruby","labels_url":"https://api.github.com/repos/jruby/jruby/issues/3734/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/3734/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/3734/events","html_url":"https://github.com/jruby/jruby/issues/3734","id":140695832,"number":3734,"title":"compiled .rb does not handle rest kwargs right","user":{"login":"kares","id":45967,"avatar_url":"https://avatars.githubusercontent.com/u/45967?v=3","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},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/java%20integration","name":"java integration","color":"000000"},{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%209000","name":"JRuby 9000","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/jruby/jruby/milestones/47","html_url":"https://github.com/jruby/jruby/milestones/JRuby%209.1.0.0","labels_url":"https://api.github.com/repos/jruby/jruby/milestones/47/labels","id":1422177,"number":47,"title":"JRuby 9.1.0.0","description":"","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":42,"closed_issues":79,"state":"open","created_at":"2015-11-20T18:01:26Z","updated_at":"2016-04-19T17:15:47Z","due_on":null,"closed_at":null},"comments":4,"created_at":"2016-03-14T14:50:07Z","updated_at":"2016-04-19T17:53:36Z","closed_at":null,"body":"Have been adding some \"edge\" case specs for jrubyc as there's been a lot of regression around loading compiled .class files.\r\n\r\n### Issue\r\n\r\nStumbled upon: \r\n\r\n```ruby\r\n  def generic(*args, **kwargs, &block)\r\n    [ args, kwargs, block ]\r\n  end\r\n\r\n# when compiled .class files is loaded with such method it will : \r\n\r\nklass.new.generic('0', 111, arg: 1) { 'block' } # [\"0\", 111, {:arg=>1}]\r\n```\r\n\r\nthis is [part of the **spec:jrubyc** suite](1ecc79c177d7fb1f5f9ae135c0)\r\n\r\n### Expected Behavior\r\n\r\n`bin/jruby -S rake spec:jrubyc` currently [pending](7d6fa8405d59b51a) due : \r\n\r\n```\r\n  1) JRuby::Compiler.compile_argv compiles hashy_kwargs.class correctly\r\n     Failure/Error: expect( res[0] ).to eql [ '0', 111 ]\r\n       \r\n       expected: [\"0\", 111]\r\n            got: [\"0\", 111, {:arg=>1}]\r\n       \r\n       (compared using eql?)\r\n     # ./spec/jrubyc/java/loading_spec.rb:55:in `block in (root)'\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/jruby/jruby/issues/comments/212040193","html_url":"https://github.com/jruby/jruby/issues/3734#issuecomment-212040193","issue_url":"https://api.github.com/repos/jruby/jruby/issues/3734","id":212040193,"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":"2016-04-19T17:53:36Z","updated_at":"2016-04-19T17:53:36Z","body":"More confirmation that something is getting lost in IR persistence:\r\n```\r\n[] ~/projects/jruby $ jruby -Xir.writing blah.rb\r\n[[\"0\", 111], {:arg=>1}, #<Proc:0x46dffdc3@blah.rb:7>]\r\n\r\n[] ~/projects/jruby $ jruby -Xir.reading blah.rb\r\n[[\"0\", 111, {:arg=>1}], {}, #<Proc:0x5bc79255@blah.rb:7>]\r\n```"}}