FogBugz (Case [Issue]12316) Nautilus - Protocol created with name as empty string

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

FogBugz (Case [Issue]12316) Nautilus - Protocol created with name as empty string

Pharo Issue Tracker
FogBugz Notification
avatar
Bug in Project:  Nautilus: 1. Pharo Image  •  You are subscribed to this case
Evaluating "Morph protocols sorted" returns #'' as the first element.  This uses #allProtocolsNames with a single implementer for ProtocolOrganizer.  

A #haltOnce placed in ProtocolOrganizer>>addProtocolNamed: gets triggered when adding a protocol from Nautilus, which calls...

(Protocol name: aName)

So perhaps something like the following asserts could be added to flag when the erroneous #'' value is introduced.

Protocol >> name: anObject

name := anObject asSymbol.

self assert: (name ~= #'').

"If this assert fails please report at https://pharo.fogbugz.com/default.asp?12316"

 

Protocol >> initialize

 

super initialize.

methods := IdentitySet new..

name := self class defaultName.

self assert: (name ~= #'').

"If this assert fails please report at https://pharo.fogbugz.com/default.asp?12316"
Priority Priority: 2 – Really Important Status Status: Work Needed
Assigned To Assigned to: Everyone Milestone Milestone: Pharo3.0

Go to Case
No longer need updates? Unsubscribe from this case.

Don't want FogBugz notifications anymore? Update your preferences.

FogBugz

_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker