{"action":"closed","issue":{"url":"https://api.github.com/repos/jruby/jruby/issues/2980","labels_url":"https://api.github.com/repos/jruby/jruby/issues/2980/labels{/name}","comments_url":"https://api.github.com/repos/jruby/jruby/issues/2980/comments","events_url":"https://api.github.com/repos/jruby/jruby/issues/2980/events","html_url":"https://github.com/jruby/jruby/issues/2980","id":80004122,"number":2980,"title":"super fails to find superclass method from module prepended to singleton class","user":{"login":"kstuart","id":465920,"avatar_url":"https://avatars.githubusercontent.com/u/465920?v=3","gravatar_id":"","url":"https://api.github.com/users/kstuart","html_url":"https://github.com/kstuart","followers_url":"https://api.github.com/users/kstuart/followers","following_url":"https://api.github.com/users/kstuart/following{/other_user}","gists_url":"https://api.github.com/users/kstuart/gists{/gist_id}","starred_url":"https://api.github.com/users/kstuart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kstuart/subscriptions","organizations_url":"https://api.github.com/users/kstuart/orgs","repos_url":"https://api.github.com/users/kstuart/repos","events_url":"https://api.github.com/users/kstuart/events{/privacy}","received_events_url":"https://api.github.com/users/kstuart/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jruby/jruby/labels/JRuby%209000","name":"JRuby 9000","color":"bfe5bf"},{"url":"https://api.github.com/repos/jruby/jruby/labels/ruby%202.0-2.2","name":"ruby 2.0-2.2","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-24T00:59:29Z","updated_at":"2015-08-21T12:20:43Z","closed_at":"2015-08-21T12:20:43Z","body":"The following works in MRI and Rubinius but fails in jruby 9.0.0.0-SNAPSHOT (2.2.2) 2015-05-23 57edf61 Java HotSpot(TM) 64-Bit Server VM 25.25-b02 on 1.8.0_25-b17 +jit [darwin-x86_64]\r\n\r\n```ruby\r\nclass Wibble\r\n  def say_it\r\n    puts 'wibble'\r\n  end\r\nend\r\n\r\nmodule Wabble\r\n  def say_it\r\n    puts 'wabble'\r\n    super\r\n  end\r\nend\r\n\r\nwibble = Wibble.new\r\n\r\nwibble.singleton_class.prepend(Wabble)\r\nwibble.say_it\r\n```\r\n\r\nwith output:\r\n```bash\r\nwabble\r\nNoMethodError: super: no superclass method `say_it'\r\n  say_it at test.rb:10\r\n   <top> at test.rb:17\r\n```\r\n"}}