Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 57846 invoked from network); 21 Nov 2009 13:42:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Nov 2009 13:42:07 -0000 Received: (qmail 66158 invoked by uid 500); 21 Nov 2009 13:42:05 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 66096 invoked by uid 500); 21 Nov 2009 13:42:05 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 66086 invoked by uid 99); 21 Nov 2009 13:42:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2009 13:42:05 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ziggy25@gmail.com designates 209.85.220.214 as permitted sender) Received: from [209.85.220.214] (HELO mail-fx0-f214.google.com) (209.85.220.214) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 21 Nov 2009 13:41:54 +0000 Received: by fxm6 with SMTP id 6so4823362fxm.20 for ; Sat, 21 Nov 2009 05:41:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=kT+u+/e+qZNq7Ao5eSe0xSo3xtQQCA5SrmG8xukoGNY=; b=Gx4KvqitFhrhszef9rm5SgB5EZWfP79SVmNFoaMZyHdcm2ayJ02SZokP/kPZrOIsCo aR9HWrAo6dtC7B/vIw1Sn48U3n3YzbddL7sybWcXLBE1ygZPbt+y3G+R9eGk4ea49ZTc vtIcg3f9YhpD2OG1dwY+EBAjV84Y085wKAILY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fH6dV7SGABKBCNGVp6k/k7N7mHmY/JQX/+rvDpW+kBlHqpytlY5b6M9SovrrbBhOqv j/x/5ud3Rjc6BnrtDMPDL/FovUfONGRvRFyXmPSlcUAgPIk0cJ73Pf1NqnaWtlGkLmhm JVMcDjqQok7mgcw+8UzKc6cAB2c82sRsxZcBI= MIME-Version: 1.0 Received: by 10.102.149.9 with SMTP id w9mr1240520mud.77.1258810893913; Sat, 21 Nov 2009 05:41:33 -0800 (PST) In-Reply-To: <26451008.post@talk.nabble.com> References: <26443538.post@talk.nabble.com> <06080D44730F41428BAF2168FA8BDD800406DE59@icsrv02.icongmbh.de> <26451008.post@talk.nabble.com> Date: Sat, 21 Nov 2009 13:41:33 +0000 Message-ID: Subject: Re: AW: java bytecode produced by "Ant javac" different from "command line javac" bytecode From: Ziggy To: Ant Users List Content-Type: multipart/alternative; boundary=00235429d3dc2bcfac0478e1c020 X-Virus-Checked: Checked by ClamAV on apache.org --00235429d3dc2bcfac0478e1c020 Content-Type: text/plain; charset=ISO-8859-1 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 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-- > destdir="${component.path.classes}" debug="on" > executable="C:\JDK1.5.0\bin\javac.exe" compiler="classic" source="1.5" > target="1.5"> > > > > --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-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --00235429d3dc2bcfac0478e1c020--