This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/30454] [4.3 Regression] classpath/gnu/javax/crypto/jce/GnuCrypto.java:431: error: cannot find file for class gnu.javax.crypto.jce.mac.HMacSHA512Spi
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Jan 2007 08:28:38 -0000
- Subject: [Bug java/30454] [4.3 Regression] classpath/gnu/javax/crypto/jce/GnuCrypto.java:431: error: cannot find file for class gnu.javax.crypto.jce.mac.HMacSHA512Spi
- References: <bug-30454-276@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #14 from pinskia at gcc dot gnu dot org 2007-01-23 08:28 -------
Here is a better patch (with correct formating):
Index: ../../gcc/java/jcf-io.c
===================================================================
--- ../../gcc/java/jcf-io.c (revision 121050)
+++ ../../gcc/java/jcf-io.c (working copy)
@@ -134,10 +134,16 @@
{
jcf_dependency_add_file (zipfile, is_system);
if (read (fd, magic, 4) != 4 || GET_u4 (magic) != (JCF_u4)ZIPMAGIC)
- return NULL;
+ {
+ close (fd);
+ return NULL;
+ }
lseek (fd, 0L, SEEK_SET);
if (read_zip_archive (zipf) != 0)
- return NULL;
+ {
+ close (fd);
+ return NULL;
+ }
}
SeenZipFiles = zipf;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|libgcj |java
GCC build triplet|hppa2.0w-hp-hpux11.11 |
GCC host triplet|hppa2.0w-hp-hpux11.11 |
GCC target triplet|hppa2.0w-hp-hpux11.11, |
|powerpc-darwin8.5 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30454