[Patch] ecj1 always fails with OpenJDK runtime.
Andrew Haley
aph@redhat.com
Fri Mar 27 09:31:00 GMT 2009
David Daney wrote:
> When ecj1 is run using the OpenJDK runtime, gcj -C always exits with a
> failure exit code (1) even though no diagnostics are issued.
>
> I tracked the problem down to a difference in behavior between the
> libgcj and OpenJDK for java.util.ZipOutputStream.
> org/eclipse/jdt/internal/compiler/batch/GCCMain tries to create a zip
> stream with no files. This succeeds under libgcj but fails under OpenJDK
>
> My hackish fix is to always create an empty file named '.dummy' in the
> stream. I don't know if this is completely safe, but it does allow me
> to successfully do a --enable-java-maintainer-mode build.
>
> 2009-03-26 David Daney <ddaney@caviumnetworks.com>
>
> * org/eclipse/jdt/internal/compiler/batch/GCCMain.java (fail):
> print a stack trace.
> (getZipOutput,getDependencyOutput): Create an empty dummy entry.
>
I'm surprised I never saw this. Andrew Overholt: where should this go?
Andrew.
More information about the Java-patches
mailing list