Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure real superclass setting in RBInsertNewClassRefactoring #15641

Merged

Conversation

hernanmd
Copy link
Contributor

This PR fixes the refactoring browser problem reported in #15602.

It modifies the RB code to ensure real superclass setting in RBInsertNewClassRefactoring>>privateTransform (this is to avoid setting the RBClass instead of the real superclass).
Also set the real superclass in RBInsertNewClassTransformation instead of the superclass name.
Add also a test reproducing the wrong behavior which now passes for both tests parameters (insert and transformation refactorings).

…eTransform (this is to avoid setting the RBClass instead of the real superclass).

Also set the real superclass in RBInsertNewClassTransformation instead of the superclass name.
Add tests which passes for both tests parameters (insert and transformation refactorings).
Copy link
Member

@jecisc jecisc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@MarcusDenker MarcusDenker merged commit edb3dd5 into pharo-project:Pharo12 Nov 30, 2023
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot insert class anymore because ShiftClassBuilder >> createClass create nil metaclass
3 participants