MethodCollector for Pundle Does Not Consider Class Side Methods

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

MethodCollector for Pundle Does Not Consider Class Side Methods

Runar Jordahl
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