# HG changeset patch # User Michael Beyl # Date 1374761650 -7200 # Node ID 04b3614c5930338fa38cc8fae6948abeceed9d84 # Parent b4d307032579df9016b32ef1e2ab689519220882 class: ClassDescription changed: #topNameSpace care for nil namespace diff -r b4d307032579 -r 04b3614c5930 ClassDescription.st --- a/ClassDescription.st Thu Jul 25 11:37:35 2013 +0200 +++ b/ClassDescription.st Thu Jul 25 16:14:10 2013 +0200 @@ -3329,10 +3329,15 @@ self isPrivate ifTrue:[^ self topOwningClass topNameSpace]. ns := self nameSpace. - ns isNameSpace ifFalse:[ - "detect the problem, that a class has the same name as a namsSpace" - self halt:'Not a namspace'. + ns isNil ifTrue:[ + "/ probably an unbound class ns := Smalltalk. "/ What a KLUDGE + ] ifFalse:[ + ns isNameSpace ifFalse:[ + "detect the problem, that a class has the same name as a namsSpace" + self halt:'Not a namspace'. + ns := Smalltalk. "/ What a KLUDGE + ] ]. ^ ns. ! @@ -4292,11 +4297,11 @@ !ClassDescription class methodsFor:'documentation'! version - ^ '$Header: /cvs/stx/stx/libbasic/ClassDescription.st,v 1.242 2013-07-11 10:08:47 stefan Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/ClassDescription.st,v 1.243 2013-07-25 14:14:10 mb Exp $' ! version_CVS - ^ '$Header: /cvs/stx/stx/libbasic/ClassDescription.st,v 1.242 2013-07-11 10:08:47 stefan Exp $' + ^ '$Header: /cvs/stx/stx/libbasic/ClassDescription.st,v 1.243 2013-07-25 14:14:10 mb Exp $' ! !