Skip to content

22288-The-changes-in-21855-affect-old-extension-methods-that-are-not-case-equals#1663

Merged
tesonep merged 1 commit into
pharo-project:developmentfrom
guillep:22288-The-changes-in-21855-affect-old-extension-methods-that-are-not-case-equals
Aug 1, 2018
Merged

22288-The-changes-in-21855-affect-old-extension-methods-that-are-not-case-equals#1663
tesonep merged 1 commit into
pharo-project:developmentfrom
guillep:22288-The-changes-in-21855-affect-old-extension-methods-that-are-not-case-equals

Conversation

@guillep
Copy link
Copy Markdown
Member

@guillep guillep commented Jul 30, 2018

https://pharo.fogbugz.com/f/cases/22288/The-changes-in-21855-affect-old-extension-methods-that-are-not-case-equals

In 21855 the comparison of MCPackages was made case sensitive. This has problems when there are extension methods that are wrongly defined... For example, loading JSON 1.2

Metacello new
configuration: 'JSON';
repository: 'http://smalltalkhub.com/mc/PharoExtras/JSON/main/';
version: '1.2';
load.

will create two packages in latest pharo 7 (JSON, Json-printing). The second package is indeed wrong, it is created because the a method has "*Json-printing" as protocol, instead of "*JSON".

This PR introduces a case insensitive comparison of protocols when installing extension methods to be able to load old packages with wrong protocols.

@tesonep tesonep merged commit 8947fc5 into pharo-project:development Aug 1, 2018
@guillep guillep deleted the 22288-The-changes-in-21855-affect-old-extension-methods-that-are-not-case-equals branch December 6, 2023 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants