[Patch] ecj1 always fails with OpenJDK runtime.
David Daney
ddaney@caviumnetworks.com
Thu Mar 26 16:22:00 GMT 2009
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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ecj.patch
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20090326/b462e64d/attachment.ksh>
More information about the Java-patches
mailing list