/* The following tweak by "Eric Olson" <ego@alum.mit.edu>
* is to enable xml-security to play with JDK 1.4 which
* unfortunately bundles an old version of Xalan
*/
FuncLoader funcHereLoader = new FuncHereLoader();
try {
java.lang.reflect.Field mFunctions = FunctionTable.class.getField("m_functions");
FuncLoader[] m_functions = (FuncLoader[]) mFunctions.get(null);
for (int i = 0; i < m_functions.length; i++) {
FuncLoader loader = m_functions[i];
if (loader != null) {
if (log.isDebugEnabled())
log.debug("Func " + i + " " + loader.getName());
if (loader.getName().equals(funcHereLoader.getName())) {
m_functions[i] = funcHereLoader;
}
}
}
} catch (java.lang.NoSuchFieldException e) {