Why do class files differ in size when compiling the same code in eclipse and then using the eclipse compiler via ant?

I am creating an automated build environment using ant to build the freshly processed source tree using the same eclipse compiler used by eclipse. The problem is that some of the resulting class files differ in size than the class file generated by compiling in eclipse. Why is this? Is this normal and what can you expect? As prescribed, I tell ant to use the eclipse compiler, for example:

<target description="compile project with Eclipse compiler" name="build-eclipse-compiler">
        <property name="build.compiler" value="org.eclipse.jdt.core.JDTCompilerAdapter"/>
        <antcall target="build"/>
</target>
+5
source share
1 answer

Eclipse , , - -.

Ant Sun - javac - JDK.

eclipse eclipse.org, ant - . , JRE, , JDK. "JDT Core Batch Compiler" http://download.eclipse.org/eclipse/downloads/drops/R-3.6-201006080911/index.php


EDIT: - . , :

  • JVM - Java 6 Java 1.2.
  • ( , JVM )
  • .
+5

All Articles