Project

General

Profile

Actions

Bug #21446

open

StackOverflow when changing visibility in reopened refinement

Added by luke-gru (Luke Gruber) 1 day ago. Updated about 18 hours ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:122558]

Description

class A
  def a
    :a
  end
end
class B < A
end

module R
  refine B do
    private :a
  end
end
module R
  refine B do
    public :a
  end
end
using R
B.new.a # StackOverflow

I would expect it to change the visibility, not to overflow the stack.

Updated by nobu (Nobuyoshi Nakada) about 18 hours ago

It does not seem to need to reopen the refinement.

Reproduces just by changing visibility twice.

module R
  refine B do
    private :a
    public :a
  end
end
Actions #2

Updated by nobu (Nobuyoshi Nakada) about 18 hours ago

  • Backport changed from 3.2: UNKNOWN, 3.3: UNKNOWN, 3.4: UNKNOWN to 3.2: REQUIRED, 3.3: REQUIRED, 3.4: REQUIRED
Actions

Also available in: Atom PDF

Like0
Like0Like0