* java/io/ObjectOutputStream.java (writeObject): Per spec, call
NotSerializableException with just the class name.
From-SVN: r35325
+2000-07-28 Warren Levy <warrenl@cygnus.com>
+
+ * java/io/ObjectOutputStream.java (writeObject): Per spec, call
+ NotSerializableException with just the class name.
+
2000-07-26 Andrew Haley <aph@cygnus.com>
* interpret.cc (continue1): Insert missing break into switch.
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 ())
{
break;
}
- throw new NotSerializableException ("Instances of the class "
- + clazz.getName ()
- + " are not Serializable");
+ throw new NotSerializableException (clazz.getName ());
} // end pseudo-loop
}
catch (IOException e)