class Thing
  def foo
    :hello
  end
end

OtherThing = Thing

module Kernel
  Stuff = Thing
end

class Thing
  alias_method :bar, :foo  # works
end

class OtherThing
  alias_method :baz, :foo  # works
end

class Stuff
  alias_method :oups, :foo  # doesn't work in JRuby 1.2.0
end
