Thanks, i will supply a patch to Jira later. 2007/4/5, Yang Paulex <[EMAIL PROTECTED]>:
2007/4/4, Sean Qiu <[EMAIL PROTECTED]>: > > When i run tests of openejb with our classlib, it will report > that it cannot find the method of com.sun.tools.javac.Main.compile([ > Ljava.lang.String;, java.io.PrintWriter). > In our module of tools, it only implement the > com.sun.tools.javac.Main.compile([Ljava.lang.String;, java.io.PrintWriter) > method. > Shall we implement the method? If does, where can we get these internel api > spec? Yes, I think we shall, and the implementation can be another simple wrapper method of ECJ. I found the methods signature in tools Javadoc[1] as below, public static int compile(String[] args); public static int compile(String[] args, PrintWriter out); There is a good match in ECJ entry class org.eclipse.jdt.internal.compiler.batch.Main's constructor Main(PrintWriter out, PrintWriter err, Boolean) [1] <Javadoc root>/docs/tooldocs/solaris/javac.html >>>>>>. error message >>>>>>>> > Caused by: java.lang.NoSuchMethodException: > com.sun.tools.javac.Main.compile > ([Ljava.lang.String;, java.io.PrintWriter) > at java.lang.Class.throwNoSuchMethodException(Class.java:278) > at java.lang.Class.getMethod(Class.java:755) > at > org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess > (JavacCompiler.java:418) > > -- > Sean Qiu > -- Paulex Yang China Software Development laboratory IBM
-- Sean Qiu
