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

EpMethodModification has wrong page name for oldMethod when creating extension methods #12208

Open
chisandrei opened this issue Jan 3, 2023 · 0 comments

Comments

@chisandrei
Copy link
Contributor

EpMethodModification stores the old and the new methods as RGMethodDefinition. When creating an extension method by moving a method to another package the oldMethod object has as package the name of the new package instead of the name of the initial package containing the method.

Scenarios to reproduce:

  • create two package PackageA and PackageB
  • create a class TestClass in PackageA
  • create a method targetMethod
  • move targetMethod from PackageA to PackageA

In this case the EpMethodModification event as PackageB as old package for the method.

Tested in Pharo-11.0.0+build.405.sha.490e0fb59ad4ce97a5faeb044b2d1ebe306cd691 (64 Bit)

Screenshot 2023-01-03 at 11 49 59

Screenshot 2023-01-03 at 11 50 08

Screenshot 2023-01-03 at 11 51 01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant