[Pharo-project] in 14379...

Pavel Krivanek pavel.krivanek at gmail.com
Tue Mar 6 06:25:02 EST 2012


what about to fix it this way:

isPostMortem
	"return whether we're inspecting a frozen exception without a process attached"
	|selectedContext suspendedContext |
	selectedContext := self selectedContext.
	suspendedContext := interruptedProcess suspendedContext.
	suspendedContext ifNil: [ ^ false ].
	(suspendedContext == selectedContext)
		ifTrue: [ ^ false ].
	^ (suspendedContext findContextSuchThat: [:c | c sender ==
selectedContext]) isNil

-- Pavel

On Tue, Mar 6, 2012 at 12:08 PM, Stéphane Ducasse
<stephane.ducasse at inria.fr> wrote:
> Hi guys
>
> when I try to load
>
> MCSqueaksourceRepository
>        location: 'http://squeaksource.com/Games'
>        user: ''
>        password: ''
>
> load MorphicGames-md.1.mcz
>
> I get a DNU
>
> isPostMortem
>        "return whether we're inspecting a frozen exception without a process attached"
>        |selectedContext|
>        selectedContext := self selectedContext.
>        (interruptedProcess suspendedContext == selectedContext)
>                ifTrue: [ ^ false ].
>        ^ (interruptedProcess suspendedContext findContextSuchThat: [:c | c sender == selectedContext]) isNil
>
>                                                                        ^^^^^^ DNU findContextSuchThat:
>
>
> interruptedProcess suspendedContext is a MethodContext
>
> Now I do not understand since find findContextSuchThat: is defined in ContextPart the super class of MethodContext.
>
> Stef




More information about the Pharo-dev mailing list