aboutsummaryrefslogtreecommitdiff
path: root/libjava/java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-03-28 09:49:44 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-03-28 09:49:44 +0000
commitbcfaead06e1abd3796619d853aee8ae762976e15 (patch)
tree18f1993101d369dd242e1c0d353b47e6f6c94d1a /libjava/java
parent0c85dbfd1251f34624e17cae810de6ddd4257cc4 (diff)
downloadgcc-bcfaead06e1abd3796619d853aee8ae762976e15.zip
gcc-bcfaead06e1abd3796619d853aee8ae762976e15.tar.gz
gcc-bcfaead06e1abd3796619d853aee8ae762976e15.tar.bz2
2003-03-28 Michael Koch <konqueror@gmx.de>
* java/io/FileDescriptor.java (finalize): Throws Throwable, not IOException. * java/io/ObjectOutputStream.java (PutField.put): Doesnt throws anything. From-SVN: r64970
Diffstat (limited to 'libjava/java')
-rw-r--r--libjava/java/io/FileDescriptor.java2
-rw-r--r--libjava/java/io/ObjectOutputStream.java40
2 files changed, 14 insertions, 28 deletions
diff --git a/libjava/java/io/FileDescriptor.java b/libjava/java/io/FileDescriptor.java
index f105c6f..296c37f 100644
--- a/libjava/java/io/FileDescriptor.java
+++ b/libjava/java/io/FileDescriptor.java
@@ -79,7 +79,7 @@ public final class FileDescriptor
// When collected, close.
- protected void finalize () throws IOException
+ protected void finalize () throws Throwable
{
if (valid ())
close ();
diff --git a/libjava/java/io/ObjectOutputStream.java b/libjava/java/io/ObjectOutputStream.java
index afa0acb..cb461231 100644
--- a/libjava/java/io/ObjectOutputStream.java
+++ b/libjava/java/io/ObjectOutputStream.java
@@ -841,24 +841,19 @@ public class ObjectOutputStream extends OutputStream
*/
public static abstract class PutField
{
- public abstract void put (String name, boolean value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, byte value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, char value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, double value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, float value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, int value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, long value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, short value)
- throws IOException, IllegalArgumentException;
- public abstract void put (String name, Object value)
- throws IOException, IllegalArgumentException;
+ public abstract void put (String name, boolean value);
+ public abstract void put (String name, byte value);
+ public abstract void put (String name, char value);
+ public abstract void put (String name, double value);
+ public abstract void put (String name, float value);
+ public abstract void put (String name, int value);
+ public abstract void put (String name, long value);
+ public abstract void put (String name, short value);
+ public abstract void put (String name, Object value);
+
+ /**
+ * @deprecated
+ */
public abstract void write (ObjectOutput out) throws IOException;
}
@@ -874,7 +869,6 @@ public class ObjectOutputStream extends OutputStream
= new Object[currentObjectStreamClass.objectFieldCount];
public void put (String name, boolean value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -883,7 +877,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, byte value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -892,7 +885,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, char value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -903,7 +895,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, double value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -921,7 +912,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, float value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -935,7 +925,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, int value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -948,7 +937,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, long value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -965,7 +953,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, short value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);
@@ -976,7 +963,6 @@ public class ObjectOutputStream extends OutputStream
}
public void put (String name, Object value)
- throws IOException, IllegalArgumentException
{
ObjectStreamField field
= currentObjectStreamClass.getField (name);