class: ClassDescription
authorMichael Beyl <mb@exept.de>
Thu, 25 Jul 2013 16:14:10 +0200
changeset 15555 04b3614c5930
parent 15554 b4d307032579
child 15556 ab840a26f63b
class: ClassDescription changed: #topNameSpace care for nil namespace
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 $'
 ! !