Project

General

Profile

This project is closed and read-only.

Actions

Backport #9030

closed

Backport r43334 (fix for SEGV with Refinements)

Backport #9030: Backport r43334 (fix for SEGV with Refinements)

Added by shugo (Shugo Maeda) about 13 years ago. Updated about 13 years ago.


Description

=begin
Please backport r43334 to avoid SEGV when an undefined method is refined but the refinement is not used.
For example, the following program causes SEGV.

  class Foo
    def foo
    end

    undef foo
  end

  module FooExt
    refine Foo do
      def foo
      end
    end
  end

  begin
    Foo.new.foo # or Foo.new.send(:foo)
  end

=end

Actions

Also available in: PDF Atom