Hello all! The decompiler produces the exact same output every time (both for Ant-Javac and "command line"-Javac).... and the Ant-Javac output it always different from the "command-line"-Javac....
Brian Pontarelli wrote: > > I would think it would produce the exact same output each time unless it > is using some type of system dependent code or timestamps. > > -bp > > > On Nov 21, 2009, at 6:41 AM, Ziggy wrote: > >> I would have thought that the decompiling is the reason they are >> different. >> Do you get the same result when you decompile the same file twice? >> >> I am not an expert but i think the decompiler can produce different code >> that achieves the same thing. Try to decompile the same file twice and >> see >> if the decompiler produces the same code. >> >> On Fri, Nov 20, 2009 at 10:04 PM, td.com <lydie.comp...@td.com> wrote: >> >>> >>> Hello all and thanks for your replies >>> >>> By different I mean that once decompiled (with jd) or dissassembled with >>> javap, the resulting files are different. >>> >>> In order to use the same javac options on the command line, I ran Ant >>> with >>> the -debug option. >>> That being done I was able to copy the arguments Ant sent to javac. >>> With all the information provided by the Ant-Javac, I was able to, >>> through >>> the command line Javac compile the exact same class. >>> >>> And the bytecode produced is different. >>> >>> In both cases, I use the javac provided with the JDK(1.5) >>> >>> --Ant-- >>> <javac srcdir="${component.path.src.java}" >>> destdir="${component.path.classes}" debug="on" >>> executable="C:\JDK1.5.0\bin\javac.exe" compiler="classic" source="1.5" >>> target="1.5"> >>> >>> </javac> >>> >>> --Command Line-- >>>> C:\JDK1.5.0\bin\javac -d ... -classpath ... -sourcepath... >>> classToCompile.java -g -source 1.5 -target 1.5 >>> >>> Please help!!!!! >>> >>> >>> >>> Knuplesch, Juergen wrote: >>>> >>>> You probably use a different JDK (e.g. Eclipse uses his own javac) or >>>> different options. >>>> What exactly do you do in Ant javac and the other javac? >>>> >>> >>> -- >>> View this message in context: >>> http://old.nabble.com/java-bytecode-produced-by-%22Ant-javac%22-different-from-%22command-line-javac%22-bytecode-tp26443538p26451008.html >>> Sent from the Ant - Users mailing list archive at Nabble.com. >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscr...@ant.apache.org >>> For additional commands, e-mail: user-h...@ant.apache.org >>> >>> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@ant.apache.org > For additional commands, e-mail: user-h...@ant.apache.org > > > :-(:-( -- View this message in context: http://old.nabble.com/java-bytecode-produced-by-%22Ant-javac%22-different-from-%22command-line-javac%22-bytecode-tp26443538p26460823.html Sent from the Ant - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@ant.apache.org For additional commands, e-mail: user-h...@ant.apache.org