-
Notifications
You must be signed in to change notification settings - Fork 72
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
Use protocolNameOfSelector: in pharo-12 #677
Use protocolNameOfSelector: in pharo-12 #677
Conversation
…cation debugger from opening to suggest an automatic deprecation code rewrite, i.e..: The messages appearing were like: The method ClassDescription>>#whichCategoryIncludesSelector: called from StackInterpreter class>>#isStackAccessor: has been deprecated. Use #protocolNameOfSelector: instead. Also add two tests for #isObjectAccessor: and #isStackAccessor:
The change is nice, but it requires that the build image is a P12, as this changes has been included there. |
I don't understand " It will be nice to have the image updated also to p12 in the PR". What does it mean? I suspect these problems will be more frequent as Pharo 12 keeps moving.
So 4 possible combinations:
Beyond that, AFAIK the VMMaker image used during code compilation is a Pharo 11 one.
|
I did a pass to see if VMMaker will work in Pharo 12 image, but it seems this should be splitted in multiple PR's. ![]() ![]() |
There is a confusion here. The name of the branch means what Pharo version the VM for. This does not mean that the VM simulator and dev environment should run on pharo-12. |
Thanks for the clarification. |
Well, this PR has two different changes. There is the change to protocolThingy, which I think we can just drop for now, we will redo it later easily. However, the couple of tests for the interpreter are nice! So, I suggest we split this PR in two and keep the tests, what do you think? |
Sure, I've extracted the tests and sent a new PR #690 |
The new PR was merged, I'll close this one |
This PR modified two methods to use #protocolNameOfSelector: to avoid the Deprecation debugger from opening to suggest an automatic deprecation code rewrite, i.e..:
The messages appearing were like: The method ClassDescription>>#whichCategoryIncludesSelector: called from StackInterpreter class>>#isStackAccessor: has been deprecated. Use #protocolNameOfSelector: instead.
Also add two tests for #isObjectAccessor: and #isStackAccessor: