pharo icon indicating copy to clipboard operation
pharo copied to clipboard

[Refactoring-UI] Error when pushing up method if same one exists in superclass

Open JanBliznicenko opened this issue 9 months ago • 2 comments

When we try to push up a method while a method with same selector exists in the superclass, the refactoring ends up in an error.

Steps to reproduce:

  1. Create a method named 'abc' in any class that has a subclass
  2. Create a method named 'abc' in its direct subclass
  3. Right click the 'abc' method in the subclass
  4. Refactorings
  5. (R) Pull up
  6. Refactor

=> Instance of RBNegationCondition class did not understand #strategyChoiceClass, in RePullUpMethodDriver

Issue is present in the released Pharo 13 and current build of Pharo 14.

JanBliznicenko avatar May 27 '25 15:05 JanBliznicenko

Thanks for the report

Ducasse avatar Jun 02 '25 08:06 Ducasse

I can reproduce it.

Ducasse avatar Jun 03 '25 07:06 Ducasse