aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/io
diff options
context:
space:
mode:
authorWarren Levy <warrenl@cygnus.com>2000-07-28 23:48:19 +0000
committerWarren Levy <warrenl@gcc.gnu.org>2000-07-28 23:48:19 +0000
commit2dacb3e9cef2f935c695eaf89b64b48f5651a70f (patch)
treedf679b1ef7cbca3e4d263ddb0bfd8b94f24bff86 /libjava/java/io
parent08012cdae4c361b3ca10be0f00b8576042242043 (diff)
downloadgcc-2dacb3e9cef2f935c695eaf89b64b48f5651a70f.zip
gcc-2dacb3e9cef2f935c695eaf89b64b48f5651a70f.tar.gz
gcc-2dacb3e9cef2f935c695eaf89b64b48f5651a70f.tar.bz2
ObjectOutputStream.java (writeObject): Per spec, call NotSerializableException with just the class name.
* java/io/ObjectOutputStream.java (writeObject): Per spec, call NotSerializableException with just the class name. From-SVN: r35325
Diffstat (limited to 'libjava/java/io')
-rw-r--r--libjava/java/io/ObjectOutputStream.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/libjava/java/io/ObjectOutputStream.java b/libjava/java/io/ObjectOutputStream.java
index a13f14a..9c758b0 100644
--- a/libjava/java/io/ObjectOutputStream.java
+++ b/libjava/java/io/ObjectOutputStream.java
@@ -267,9 +267,7 @@ public class ObjectOutputStream extends OutputStream
Class clazz = obj.getClass ();
ObjectStreamClass osc = ObjectStreamClass.lookup (clazz);
if (osc == null)
- throw new NotSerializableException ("The class "
- + clazz.getName ()
- + " is not Serializable");
+ throw new NotSerializableException (clazz.getName ());
if (clazz.isArray ())
{
@@ -334,9 +332,7 @@ public class ObjectOutputStream extends OutputStream
break;
}
- throw new NotSerializableException ("Instances of the class "
- + clazz.getName ()
- + " are not Serializable");
+ throw new NotSerializableException (clazz.getName ());
} // end pseudo-loop
}
catch (IOException e)