summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-28 09:49:44 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-28 09:49:44 +0000
commitcf9fae4e382d011be8645b36e91d2d529c3b658c (patch)
tree18f1993101d369dd242e1c0d353b47e6f6c94d1a /libjava
parent5674e61dfa4d3122e9919717dd6a5edbf67b5473 (diff)
downloadgcc-cf9fae4e382d011be8645b36e91d2d529c3b658c.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64970 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog7
-rw-r--r--libjava/java/io/FileDescriptor.java2
-rw-r--r--libjava/java/io/ObjectOutputStream.java40
3 files changed, 21 insertions, 28 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 97dc76fa32e..23c1423b09f 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2003­03-28 Michael Koch <konqueror@gmx.de>
* java/io/FileOutputStream.java:
diff --git a/libjava/java/io/FileDescriptor.java b/libjava/java/io/FileDescriptor.java
index f105c6f8ab0..296c37f8b8a 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 afa0acb8abf..cb461231b33 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);