All this talk about javac and what should be visible and what should not, just points out the need for the Java Specs to define a standardize way to access a Java Compiler. With JSPs and other technologies that require compilation of generated code it should be obvious that we cannot continue using javap to try to solve this problem.
Perhaps we need something similar to JAXP (the standarizd API for XML parsers) that all Java compiler providers should support to make tools portable to different environments. Anyone willing to make an JSR out of this? Jose Alberto Robin Green wrote: > > > Where can I find documentation on the various JDK versions of > > > sun.tools.javac.Main.compile? > > > >In the source code. > > > > The modern compiler in JDK1.3 is at com.sun.tools.javac.Main. The old > compiler is maintained for backward compatibility at sun.tools.javac.Main. > However, because the former is based on someone else's code (IIRC), the > source for this "modern" javac is not shipped even in the SCSL source > release. > > Even so, you can still use javap to get the method signatures, which is what > I did. I did post a working patch for modern compiling a while back - it > should be in the mail list archives (there are no web archives yet, but you > can get still get it with an ezlm command). > ______________________________________________________ > Get Your Private, Free Email at http://www.hotmail.com -- ------------------------------------------------------------------------ Jose Alberto Fernandez 500 Oracle Parkway, M/S 9op4 Development Manager Redwood Shores, CA 94065 ORACLE Corp. Phone: (650) 506-8830 Java Products Group Fax: (650) 506-7303 Languages & Obj-Relational Tech Email: [EMAIL PROTECTED]
begin:vcard n:Fernandez;Jose Alberto tel;work:(650) 506-8830 x-mozilla-html:TRUE org:Oracle Corp. <A HREF="http://www.oracle.com/go/?&URL=http://www.oracle.com/"><img src="http://www.oracle.com/signature/obanner.gif"></A>;Java Products Group <A HREF="http://www.oracle.com/go/?&URL=http://www.oracle.com/">Visit us at http://www.oracle.com</A> version:2.1 email;internet:[EMAIL PROTECTED] title:Development Manager adr;quoted-printable:;;500 Oracle Parkway=0D=0AM/S: 4op9;Redwood Shores;California;94065;USA x-mozilla-cpt:;19904 fn:Fernandez, Jose Alberto end:vcard
