[BUG] DVS bug with nil actualClass in MethodReference (was Re: ScriptableButton - bug?)

Avi Bryant avi at beta4.com
Mon Dec 9 20:44:56 UTC 2002


Yeah, that's actually fixed already in CVS.  Just add this guard clause:

  aClass ifNil: [^ false].

to PackageInfo>>includesMethod:ofClass:

On Mon, 9 Dec 2002, Ned Konz wrote:

> Looks like the last method submission had a nil actualClass for some
> reason...
>
> On Monday 09 December 2002 10:36 am, Markus Fritsche wrote:
> > Hi!
> >
> > I made a ScriptableButton, and then edited the attached script. As
> > I wanted to accept the script with cmd+s, this error came up.
> >
> > Regards, Markus
> >
> > 9 December 2002 7:34:15 pm
> >
> > VM: Win32 - Squeak3.3alpha of 24 January 2002 [latest update:
> > #4967] Image: Squeak3.4beta [latest update: #5138]
> >
> > UndefinedObject(Object)>>doesNotUnderstand:
> > 	Receiver: nil
> > 	Arguments and temporary variables:
> > 		aMessage: 	a Message with selector: #organization and arguments:
> > #() Receiver's instance variables:
> > nil
> >
> > PackageInfo>>includesMethod:ofClass:
> > 	Receiver: DVS
> > 	Arguments and temporary variables:
> > 		aSymbol: 	#button
> > 		aClass: 	nil
> > 	Receiver's instance variables:
> > 		packageName: 	'DVS'
> >
> > PackageInfo>>includesMethodReference:
> > 	Receiver: DVS
> > 	Arguments and temporary variables:
> > 		aMethodRef: 	a MethodReference nil >> button
> > 	Receiver's instance variables:
> > 		packageName: 	'DVS'
> >
> > FilePackageManager(PackageManager)>>update:
> > 	Receiver: a FilePackageManager
> > 	Arguments and temporary variables:
> > 		aSymbol: 	#recentMethodSubmissions
> > 	Receiver's instance variables:
> > 		packageName: 	'DVS'
> > 		modified: 	false
> > 		directory: 	DosFileDirectory on 'C:\Dokumente und
> > Einstellungen\mfritsche\Eigene...etc...
> >
> >
> > --- The full stack ---
> > UndefinedObject(Object)>>doesNotUnderstand:
> > PackageInfo>>includesMethod:ofClass:
> > PackageInfo>>includesMethodReference:
> > FilePackageManager(PackageManager)>>update:
> >   - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
> > [] in Utilities class(Object)>>changed:
> > DependentsArray>>do:
> > Utilities class(Object)>>changed:
> > AnObsoletePlayer54 class(Class)>>noteCompilationOf:meta:
> > AnObsoletePlayer54
> > class(ClassDescription)>>compile:classified:withStamp:notifying:log
> >Source: AnObsoletePlayer54
> > class(ClassDescription)>>compile:classified:withStamp:notifying:
> > AnObsoletePlayer54
> > class(ClassDescription)>>compile:classified:notifying:
> > MethodHolder>>contents:notifying:
> > MethodMorph(PluggableTextMorph)>>accept
> > MethodHolder(StringHolder)>>perform:orSendTo:
> > [] in MenuItemMorph>>invokeWithEvent:
> > BlockContext>>ensure:
> > CursorWithMask(Cursor)>>showWhile:
> > MenuItemMorph>>invokeWithEvent:
> > MenuItemMorph>>mouseUp:
> > MenuItemMorph>>handleMouseUp:
> > MouseButtonEvent>>sentTo:
> > MenuItemMorph(Morph)>>handleEvent:
> > MorphicEventDispatcher>>dispatchDefault:with:
> > MorphicEventDispatcher>>dispatchEvent:with:
> > MenuItemMorph(Morph)>>processEvent:using:
> > MorphicEventDispatcher>>dispatchDefault:with:
> > MorphicEventDispatcher>>dispatchEvent:with:
> > MenuMorph(Morph)>>processEvent:using:
> > MenuMorph(Morph)>>processEvent:
> > MenuMorph>>handleFocusEvent:
> > [] in HandMorph>>sendFocusEvent:to:clear:
> > PasteUpMorph>>becomeActiveDuring:
> > HandMorph>>sendFocusEvent:to:clear:
> > HandMorph>>sendEvent:focus:clear:
> > HandMorph>>sendMouseEvent:
> > HandMorph>>handleEvent:
> > HandMorph>>processEvents
> > [] in WorldState>>doOneCycleNowFor:
> > Array(SequenceableCollection)>>do:
> > WorldState>>handsDo:
> > WorldState>>doOneCycleNowFor:
> > WorldState>>doOneCycleFor:
> > WorldState>>doOneSubCycleFor:
> > PasteUpMorph>>doOneSubCycle
> > MenuMorph>>invokeModalAt:in:allowKeyboard:
> > MenuMorph>>invokeModal:
> > MethodMorph(PluggableTextMorph)>>yellowButtonActivity:
> > MethodMorph(ScrollPane)>>mouseDown:
> > MethodMorph(Morph)>>handleMouseDown:
> > MouseButtonEvent>>sentTo:
> > MethodMorph(Morph)>>handleEvent:
> > MorphicEventDispatcher>>dispatchMouseDown:with:
> > MorphicEventDispatcher>>dispatchEvent:with:
> > MethodMorph(Morph)>>processEvent:using:
> > MorphicEventDispatcher>>dispatchMouseDown:with:
> > MorphicEventDispatcher>>dispatchEvent:with:
> > ScriptEditorMorph(Morph)>>processEvent:using:
> > MorphicEventDispatcher>>dispatchMouseDown:with:
> > MorphicEventDispatcher>>dispatchEvent:with:
> > PasteUpMorph(Morph)>>processEvent:using:
> > PasteUpMorph>>processEvent:using:
> > -- and more not shown --
>
> --
> Ned Konz
> http://bike-nomad.com
> GPG key ID: BEEA7EFE
>
>
>




More information about the Squeak-dev mailing list