This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch] ecj1 always fails with OpenJDK runtime.


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]