#BUGFIX by cg
authorClaus Gittinger <cg@exept.de>
Thu, 15 Mar 2018 11:46:18 +0100
changeset 18012 7513d5645fa6
parent 18011 75727b35f15c
child 18013 9e620ee2fae4
#BUGFIX by cg class: Tools::ClassList changed: #updateList dont break on anon classes
Tools__ClassList.st
--- a/Tools__ClassList.st	Thu Mar 15 11:46:04 2018 +0100
+++ b/Tools__ClassList.st	Thu Mar 15 11:46:18 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 2004 by eXept Software AG
               All Rights Reserved
@@ -1859,9 +1861,15 @@
 
         newSelectionIndices := prevSelection 
                             collect:[:item | 
-                                |cls|
+                                |className cls|
 
-                                cls := environment at:item theNonMetaclass name.   
+                                className := item theNonMetaclass name.
+                                className isSymbol ifFalse:[
+                                    "/ this is an anon class!!
+                                    cls := item theNonMetaclass.
+                                ] ifTrue:[
+                                    cls := environment at:className.   
+                                ].
                                 newList identityIndexOf:cls]
                             thenSelect:[:index | index ~~ 0].