Skip to content

Commit

Permalink
Changed back MpMethodProxy to inherit from proxy + resolved calypso bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Bastien Pascal committed Jul 3, 2023
1 parent b10f57b commit eae430a
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/MethodProxies/MpMethodProxy.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ This package is developed and maintained by S. Ducasse, G. Polito and P. Tesone,
"
Class {
#name : #MpMethodProxy,
#superclass : #ProtoObject,
#superclass : #Object,
#instVars : [
'selector',
'methodClass',
Expand All @@ -37,6 +37,14 @@ Class {
#category : #MethodProxies
}

{ #category : #'reflective operations' }
MpMethodProxy class >> doesNotUnderstand: aMessage [

^ CompiledMethod
perform: aMessage selector
withArguments: aMessage arguments
]

{ #category : #'instance creation' }
MpMethodProxy class >> on: selector inClass: aClass handler: aHandler [

Expand Down Expand Up @@ -69,6 +77,14 @@ MpMethodProxy >> = anObject [
^ self == anObject
]

{ #category : #accessing }
MpMethodProxy >> calypsoEnvironmentType [
^ proxifiedMethod
ifNotNil: [ proxifiedMethod calypsoEnvironmentType ]
ifNil: [ super calypsoEnvironmentType ]

]

{ #category : #initialization }
MpMethodProxy >> class: aClass selector: aSymbol [

Expand Down

0 comments on commit eae430a

Please sign in to comment.