Skip to content

Commit 4d0e484

Browse files
authored
Merge pull request #137 from DurieuxPol/fix/terminated
Fixed MTMethodInstaller for Pharo 14
2 parents 6b897d3 + 69e27ab commit 4d0e484

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

src/MuTalk-Model/MTMethodInstaller.class.st

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,13 @@ Class {
1212
{ #category : 'installing' }
1313
MTMethodInstaller >> install: aMethod for: selector in: aClass withProtocol: methodProtocol [
1414

15-
aClass
16-
addAndClassifySelector: selector
17-
withMethod: aMethod
18-
inProtocol: methodProtocol
15+
SystemVersion current major >= 14
16+
ifTrue: [
17+
aClass methodInstaller
18+
protocol: methodProtocol;
19+
logged: false;
20+
install: aMethod into: aClass compiler: nil ]
21+
ifFalse: [ aClass addAndClassifySelector: selector withMethod: aMethod inProtocol: methodProtocol ]
1922
]
2023

2124
{ #category : 'installing' }

0 commit comments

Comments
 (0)