This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [Patch] ecj1 always fails with OpenJDK runtime.
- From: Andrew Haley <aph at redhat dot com>
- To: David Daney <ddaney at caviumnetworks dot com>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>, Andrew Overholt <overholt at redhat dot com>
- Date: Fri, 27 Mar 2009 09:30:57 +0000
- Subject: Re: [Patch] ecj1 always fails with OpenJDK runtime.
- References: <49CBAB3A.2090206@caviumnetworks.com>
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.