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

Backport-5072-MCClassTraitDefinition-should-take-category-into-account-for-equality #5075

Conversation

jecisc
Copy link
Member

@jecisc jecisc commented Nov 7, 2019

This is fixing a bug while loading code.

In Pharo 7, the loading of code is using a cache for MCDefinitions.
When you create a new definition, it checks if one equivalent was already created, if yes, it return this one.

The equality of MCClassTraitDefinition does not take the category into account and I got bug while loading code because the MCClassTraitDefinition was wrong because it found one with another category.

In Pharo 7, the loading of code is using a cache for MCDefinitions. 
When you create a new definition, it checks if one equivalent was already created, if yes, it return this one.

The equality of MCClassTraitDefinition does not take the category into account and I got bug while loading code because the MCClassTraitDefinition was wrong because it found one with another category.
@jecisc
Copy link
Member Author

jecisc commented Nov 7, 2019

Backport of #5072

@jecisc
Copy link
Member Author

jecisc commented Nov 21, 2019

Any news on this? I still get the bug in Pharo 7 and it's pretty annoying :(

@Ducasse
Copy link
Member

Ducasse commented Nov 23, 2019

The broken tests seems unrelated.

@Ducasse Ducasse merged commit fd8c156 into pharo-project:Pharo7.0 Nov 23, 2019
@jecisc jecisc deleted the Backport-5072-MCClassTraitDefinition-should-take-category-into-account-for-equality branch November 29, 2022 15:23
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.

None yet

4 participants