Smalltalk
›
Pharo
›
Pharo Issue Tracker
Search
everywhere
only in this topic
Advanced Search
FogBugz (Case [Issue]12316) Nautilus - Protocol created with name as empty string
‹
Previous Topic
Next Topic
›
Classic
List
Threaded
♦
♦
Locked
1 message
Pharo Issue Tracker
Reply
|
Threaded
Open this post in threaded view
♦
♦
|
FogBugz (Case [Issue]12316) Nautilus - Protocol created with name as empty string
FogBugz Notification
Ben Coman
edited
Case 12316
: Protocol created with name as empty string
:
Bug
in
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 triggers 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 triggers please report at https://pharo.fogbugz.com/default.asp?12316"
Title
changed:
(Untitled)
Protocol created with name as empty string
Priority
: 2 – Really Important
Status
: Work Needed
Assigned to
: Everyone
Milestone
: Pharo3.0
Go to Case
No longer need updates?
Unsubscribe from this case.
Don't want FogBugz notifications anymore?
Update your preferences.
A FogBugz case was edited by Ben Coman. Case ID: 12316 Title: Protocol created with name as empty string Status: Work Needed Category: Bug Project: Nautilus Area: 1. Pharo Image Priority: 2 - Really Important Milestone: Pharo3.0: 3/30/2014 Assigned To: Everyone URL: https://pharo.fogbugz.com/f/cases/12316 Changes: Title changed from '(Untitled)' to 'Protocol created with name as empty string'. 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 triggers 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 triggers please report at https://pharo.fogbugz.com/default.asp?12316" You are subscribed to this case. If you do not want to receive automatic notifications in the future, unsubscribe (https://pharo.fogbugz.com/default.asp?pre=preUnsubscribe&pg=pgEditBug&command=view&ixBug=12316) from this case.
_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Free forum by Nabble
Edit this page