Please note that there are two copies of tools module (including javac sources). One in classlib and another in jdktools. It was decided to remove classlib's copy after tools sources were copied to jdktools [1], but nobody did that. Now sources in these copies are slightly different.
It makes sense first to merge changes in both copies and get rid of classlib's one and then continue modification of javac sources in jdktools. Thanks. Ivan [1] http://thread.gmane.org/gmane.comp.java.harmony.devel/22502 On 4/5/07, Sean Qiu <[EMAIL PROTECTED]> wrote:
2007/4/5, Mikhail Loenko <[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) > Sorry for being careless Yes, you are right . Thanks :) > you've probably meant > com.sun.tools.javac.Main.compile([Ljava.lang.String;) > > > > method. > > > > Shall we implement the method? > > Yes > > > If does, where can we get these internel api > > spec? > I will try. > Is it possible to understand it from openejb tests? > > Thanks, > Mikhail > > P.S. why do we have com.sun.* in the tools rather than in the suncompat module? > > > > > > > >>>>>>. 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 > > > -- Sean Qiu
