diff options
author | Tom Tromey <tromey@redhat.com> | 2002-06-16 21:15:44 +0000 |
---|---|---|
committer | Tom Tromey <tromey@gcc.gnu.org> | 2002-06-16 21:15:44 +0000 |
commit | 548ce8be4ab154b7d7f42ae8fe8552f9888021d0 (patch) | |
tree | d91d4df026dc21bcf38db7c9f56a8deeaa7301c0 /libjava/java/util/zip | |
parent | 3d05b15f106942bb499c9a5c1d143a3ddb33bd6f (diff) | |
download | gcc-548ce8be4ab154b7d7f42ae8fe8552f9888021d0.zip gcc-548ce8be4ab154b7d7f42ae8fe8552f9888021d0.tar.gz gcc-548ce8be4ab154b7d7f42ae8fe8552f9888021d0.tar.bz2 |
RuntimeException.java: Re-merge with Classpath.
* java/lang/RuntimeException.java: Re-merge with Classpath.
* java/util/ArrayList.java: Likewise.
* java/util/Arrays.java: Likewise.
* java/util/BitSet.java: Likewise.
* java/util/Dictionary.java: Likewise.
* java/util/IdentityHashMap.java: Likewise.
* java/util/MissingResourceException.java: Likewise.
* java/util/Observer.java: Likewise.
* java/util/TooManyListenersException.java: Likewise.
* java/util/zip/DataFormatException.java: Likewise.
* java/util/zip/ZipException.java: Likewise.
From-SVN: r54680
Diffstat (limited to 'libjava/java/util/zip')
-rw-r--r-- | libjava/java/util/zip/DataFormatException.java | 29 | ||||
-rw-r--r-- | libjava/java/util/zip/ZipException.java | 30 |
2 files changed, 39 insertions, 20 deletions
diff --git a/libjava/java/util/zip/DataFormatException.java b/libjava/java/util/zip/DataFormatException.java index 28ecef0..e5a948e 100644 --- a/libjava/java/util/zip/DataFormatException.java +++ b/libjava/java/util/zip/DataFormatException.java @@ -1,5 +1,5 @@ -/* DataformatException.java - Exception thrown when compressed data is corrupt - Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc. +/* DataformatException.java -- thrown when compressed data is corrupt + Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -37,25 +37,34 @@ exception statement from your version. */ package java.util.zip; -/* Written using on-line Java Platform 1.2 API Specification. - * Believed complete and correct. - */ - /** * Exception thrown when compressed data is corrupt. * * @author Tom Tromey * @author John Leuner - * @since JDK 1.1 + * @since 1.1 + * @status updated to 1.4 */ public class DataFormatException extends Exception { - public DataFormatException () + /** + * Compatible with JDK 1.1+. + */ + private static final long serialVersionUID = 2219632870893641452L; + + /** + * Create an exception without a message. + */ + public DataFormatException() { - super(); } - public DataFormatException (String msg) + /** + * Create an exception with a message. + * + * @param msg the message + */ + public DataFormatException(String msg) { super(msg); } diff --git a/libjava/java/util/zip/ZipException.java b/libjava/java/util/zip/ZipException.java index ed02c85..9130ef2 100644 --- a/libjava/java/util/zip/ZipException.java +++ b/libjava/java/util/zip/ZipException.java @@ -1,5 +1,5 @@ -/* ZipException.java - Exception representing a zip related error - Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. +/* ZipException.java - exception representing a zip related error + Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GNU Classpath. @@ -37,24 +37,34 @@ exception statement from your version. */ package java.util.zip; -/* Written using on-line Java Platform 1.2 API Specification. - * Believed complete and correct. - */ +import java.io.IOException; /** - * Is thrown during the creation or input of a zip file. + * Thrown during the creation or input of a zip file. * * @author Jochen Hoenicke * @author Per Bothner - * @since JDK 1.1 + * @status updated to 1.4 */ -public class ZipException extends java.io.IOException +public class ZipException extends IOException { - public ZipException () + /** + * Compatible with JDK 1.0+. + */ + private static final long serialVersionUID = 8000196834066748623L; + + /** + * Create an exception without a message. + */ + public ZipException() { - super(); } + /** + * Create an exception with a message. + * + * @param msg the message + */ public ZipException (String msg) { super(msg); |