Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 40431 invoked from network); 11 Jul 2002 12:58:23 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 11 Jul 2002 12:58:23 -0000 Received: (qmail 11686 invoked by uid 97); 11 Jul 2002 12:58:27 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 11665 invoked by uid 97); 11 Jul 2002 12:58:27 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 11641 invoked by uid 98); 11 Jul 2002 12:58:26 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <7CE0EC1FC2D0D411910700508BE38D0F06EC9A38@msxnyusr01.msx.ops.tiaa-cref.org> From: "Lu, David" To: "'ant-user@jakarta.apache.org'" Subject: [javac] vs. sun's javac Date: Thu, 11 Jul 2002 06:57:54 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Loop-Check: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N I am running ant 1.4.1 on solaris 2.8 my question is about the javac task. the resulting class files generated are different when using the ant [javac] task vs. the command line javac. one class file size is 234 bytes and the other 309. why would this be? i have a very simple class called Test.java and here is my build.xml: when i run bash-2.03$ ant ant Buildfile: build.xml ant: [exec] /usr/local/j2sdk1_3_1_03/bin/javac [javac] Compiling 1 source file to /home/lud/temp [javac] [parsing started /home/lud/temp/Test.java] [javac] [parsing completed 61ms] [javac] [loading /usr/local/j2sdk1_3_1_03/jre/lib/rt.jar(java/lang/Object.class)] [javac] [loading /usr/local/j2sdk1_3_1_03/jre/lib/rt.jar(java/lang/String.class)] [javac] [loading /usr/local/j2sdk1_3_1_03/jre/lib/rt.jar(java/util/HashMap.class)] [javac] [checking Test] [javac] [wrote /home/lud/temp/Test.class] [javac] [total 1227ms] [exec] No sourcepublic class Test extends java.lang.Object { [exec] java.lang.String a; [exec] int i; [exec] java.util.HashMap h; [exec] public Test(); [exec] public void f1(); [exec] } [exec] -rw-r--r-- 1 lud other 234 Jul 11 08:56 Test.class BUILD SUCCESSFUL Total time: 3 seconds bash-2.03$ when i run bash-2.03$ ant javac Buildfile: build.xml javac: [exec] /usr/local/j2sdk1_3_1_03/bin/javac [exec] [parsing started ./Test.java] [exec] [parsing completed 112ms] [exec] [loading /usr/local/j2sdk1_3_1_03/jre/lib/rt.jar(java/lang/Object.class)] [exec] [loading /usr/local/j2sdk1_3_1_03/jre/lib/rt.jar(java/lang/String.class)] [exec] [loading /usr/local/j2sdk1_3_1_03/jre/lib/rt.jar(java/util/HashMap.class)] [exec] [checking Test] [exec] [wrote ./Test.class] [exec] [total 978ms] [exec] Compiled from Test.java [exec] public class Test extends java.lang.Object { [exec] java.lang.String a; [exec] int i; [exec] java.util.HashMap h; [exec] public Test(); [exec] public void f1(); [exec] } [exec] -rw-r--r-- 1 lud other 309 Jul 11 08:57 Test.class BUILD SUCCESSFUL Total time: 3 seconds bash-2.03$ these two steps give different class sizes and javap outputs! how could this be? thanks! david ********************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ********************************************************************** -- To unsubscribe, e-mail: For additional commands, e-mail: