aboutsummaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2005-03-21 20:59:18 +0000
committerTom Tromey <tromey@gcc.gnu.org>2005-03-21 20:59:18 +0000
commit1ccc1c82d8e0aaaa41bf4a020db3fd5e23965d9f (patch)
tree0920c28faa44a75e3e05a921dfc6193506845696 /libjava
parent6ec4845e26d1a6f4a3536e86e6beaf209903e92c (diff)
downloadgcc-1ccc1c82d8e0aaaa41bf4a020db3fd5e23965d9f.zip
gcc-1ccc1c82d8e0aaaa41bf4a020db3fd5e23965d9f.tar.gz
gcc-1ccc1c82d8e0aaaa41bf4a020db3fd5e23965d9f.tar.bz2
VMCompiler.java (static block): Also catch BufferUnderflowException.
* java/lang/VMCompiler.java (static block): Also catch BufferUnderflowException. From-SVN: r96832
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/java/lang/VMCompiler.java4
2 files changed, 9 insertions, 0 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 2d96511..660f30e 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,8 @@
+2005-03-21 Tom Tromey <tromey@redhat.com>
+
+ * java/lang/VMCompiler.java (static block): Also catch
+ BufferUnderflowException.
+
2005-03-21 Zack Weinberg <zack@codesourcery.com>
* configure.ac: Do not invoke TL_AC_GCC_VERSION. Do not
diff --git a/libjava/java/lang/VMCompiler.java b/libjava/java/lang/VMCompiler.java
index 784a816..6961a31 100644
--- a/libjava/java/lang/VMCompiler.java
+++ b/libjava/java/lang/VMCompiler.java
@@ -141,6 +141,10 @@ final class VMCompiler
catch (java.io.IOException _)
{
}
+ catch (java.nio.BufferUnderflowException _)
+ {
+ // Invalid map file.
+ }
}
}
}