Unable to replace rexml/encoding method with new method consistently

Hello - Recently we tried to override / replace the rexml/encoding.rb
method
encoding= in order to see if we could increase performance of the
encoding=
method by inlining the UTF-8 encoding so it did not hit the require
code.
When we did this the replacement method was called “some of the time”.
We
added print statements to show when the old and when the new method were
called. Much to our surprise we found that the old method was called
even
after the new method “replaced” the old method. In this case it seems
like
the “rexml/document” document class via the “rexml/xmldecl” class
maintained
the connection to the old method whereas the other classes that use the
encoding.rb used the new method. Has anyone seen this behavior before?
BTW


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email