/data3/gump/xml-security/src/org/apache/xml/security/utils/resolver/implementations/ResolverXPointer.java [javac] /data3/gump/xml-security/src/org/apache/xml/security/Init.java:149: m_functions has private access in org.apache.xpath.compiler.FunctionTable [javac] for (int i = 0; i < FunctionTable.m_functions.length; i++) { [javac] ^ [javac] /data3/gump/xml-security/src/org/apache/xml/security/Init.java:150: m_functions has private access in org.apache.xpath.compiler.FunctionTable [javac] FuncLoader loader = FunctionTable.m_functions[i]; [javac] ^ [javac] /data3/gump/xml-security/src/org/apache/xml/security/Init.java:156: m_functions has private access in org.apache.xpath.compiler.FunctionTable [javac] FunctionTable.m_functions[i] = funcHereLoader; [javac] ^ [javac] 3 errors
BUILD FAILED /data3/gump/xml-security/build.xml:298: Compile failed; see the compiler error output for details. at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:938) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:268) at org.apache.tools.ant.Task.perform(Task.java:363) at org.apache.tools.ant.Target.execute(Target.java:321) at org.apache.tools.ant.Target.performTasks(Target.java:348) at org.apache.tools.ant.Project.executeTarget(Project.java:1212) at org.apache.tools.ant.Project.executeTargets(Project.java:1060) at org.apache.tools.ant.Main.runBuild(Main.java:666) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.Main.start(Main.java:151) at org.apache.tools.ant.Main.main(Main.java:234)
Total time: 21 seconds ---------------------------------------------
To subscribe to this information via syndicated feeds: RSS: http://lsd.student.utwente.nl/gump/xml-security/xml-security/rss.xml Atom: http://lsd.student.utwente.nl/gump/xml-security/xml-security/atom.xml
--
Apache Gump
http://gump.apache.org/ [Instance: lsd]
Hi,
I think that this little patch can help this integration problem with the cvs version of xalan.
Caveat Programer, I haven't test it with the cvs version. But i think it will compile & run fine, logging an excpetion, but keep working.
Index: Init.java
===================================================================
RCS file: /home/cvspublic/xml-security/src/org/apache/xml/security/Init.java,v
retrieving revision 1.23
diff -u -r1.23 Init.java
--- Init.java 8 Feb 2004 06:12:21 -0000 1.23
+++ Init.java 2 May 2004 12:15:20 -0000
@@ -19,6 +19,7 @@
import java.io.*;
+import java.lang.reflect.Field;
import java.lang.reflect.Method;
import java.util.*;
import javax.xml.parsers.*;
@@ -145,17 +146,25 @@
* unfortunately bundles an old version of Xalan
*/
FuncLoader funcHereLoader = new FuncHereLoader();
-
- for (int i = 0; i < FunctionTable.m_functions.length; i++) {
- FuncLoader loader = FunctionTable.m_functions[i];
+ try {
+ //Use reflection so it can be compile with new version of xalan
+ // that render this field private.
+ 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) {
log.debug("Func " + i + " " + loader.getName());if (loader.getName().equals(funcHereLoader.getName())) {
- FunctionTable.m_functions[i] = funcHereLoader;
+ m_functions[i] = funcHereLoader;
}
}
+ }
+ } catch (Exception e) {
+ log.info("Unable to patch xalan function table.",e);
}
}
