MethodCollector for Pundle Does Not Consider Class Side Methods

classic Classic list List threaded Threaded
1 message Options
Runar Jordahl Runar Jordahl
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

MethodCollector for Pundle Does Not Consider Class Side Methods

When using a MethodCollector and setting the bundle ( using method
MethodCollector>>bundle: ), the collector will only consider instance
side methods. It should also consider class side methods.

This bug is in VisualWorks 7.8.1.

A fix is included below:

MethodFilterPundle>>privateSelectClass: aClass
        namesCache ifNil: [
                namesCache := Set new.
                self pundle allClasses do: [:eachClass |
                        namesCache add: eachClass actual absoluteName.
                        namesCache add: eachClass actual class absoluteName]].
        ^namesCache includes: aClass absoluteName


Kind regards
Runar Jordahl
blog.epigent.com
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Loading...