mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8208060: Additional corrections of serial-related declarations
Reviewed-by: rriggs, lancea
This commit is contained in:
parent
9959e34180
commit
07cb147927
9 changed files with 8 additions and 11 deletions
|
@ -1709,8 +1709,7 @@ class InetAddress implements java.io.Serializable {
|
||||||
return (InetAddressImpl) impl;
|
return (InetAddressImpl) impl;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void readObjectNoData () throws
|
private void readObjectNoData () {
|
||||||
IOException, ClassNotFoundException {
|
|
||||||
if (getClass().getClassLoader() != null) {
|
if (getClass().getClassLoader() != null) {
|
||||||
throw new SecurityException ("invalid address type");
|
throw new SecurityException ("invalid address type");
|
||||||
}
|
}
|
||||||
|
|
|
@ -68,6 +68,4 @@ public enum MemoryType {
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final long serialVersionUID = 6992337162326171013L;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -225,7 +225,7 @@ public class ActivationID implements Serializable {
|
||||||
* specification.
|
* specification.
|
||||||
**/
|
**/
|
||||||
private void writeObject(ObjectOutputStream out)
|
private void writeObject(ObjectOutputStream out)
|
||||||
throws IOException, ClassNotFoundException
|
throws IOException
|
||||||
{
|
{
|
||||||
out.writeObject(uid);
|
out.writeObject(uid);
|
||||||
|
|
||||||
|
|
|
@ -359,7 +359,7 @@ public abstract class RemoteObject implements Remote, java.io.Serializable {
|
||||||
* <code>readExternal</code> method.
|
* <code>readExternal</code> method.
|
||||||
*/
|
*/
|
||||||
private void writeObject(java.io.ObjectOutputStream out)
|
private void writeObject(java.io.ObjectOutputStream out)
|
||||||
throws java.io.IOException, java.lang.ClassNotFoundException
|
throws java.io.IOException
|
||||||
{
|
{
|
||||||
if (ref == null) {
|
if (ref == null) {
|
||||||
throw new java.rmi.MarshalException("Invalid remote object");
|
throw new java.rmi.MarshalException("Invalid remote object");
|
||||||
|
|
|
@ -629,7 +629,7 @@ public class SerialArray implements Array, Serializable, Cloneable {
|
||||||
* to a stream.
|
* to a stream.
|
||||||
*/
|
*/
|
||||||
private void writeObject(ObjectOutputStream s)
|
private void writeObject(ObjectOutputStream s)
|
||||||
throws IOException, ClassNotFoundException {
|
throws IOException {
|
||||||
|
|
||||||
ObjectOutputStream.PutField fields = s.putFields();
|
ObjectOutputStream.PutField fields = s.putFields();
|
||||||
fields.put("elements", elements);
|
fields.put("elements", elements);
|
||||||
|
|
|
@ -570,7 +570,7 @@ public class SerialBlob implements Blob, Serializable, Cloneable {
|
||||||
* to a stream.
|
* to a stream.
|
||||||
*/
|
*/
|
||||||
private void writeObject(ObjectOutputStream s)
|
private void writeObject(ObjectOutputStream s)
|
||||||
throws IOException, ClassNotFoundException {
|
throws IOException {
|
||||||
|
|
||||||
ObjectOutputStream.PutField fields = s.putFields();
|
ObjectOutputStream.PutField fields = s.putFields();
|
||||||
fields.put("buf", buf);
|
fields.put("buf", buf);
|
||||||
|
|
|
@ -237,7 +237,7 @@ public class SerialRef implements Ref, Serializable, Cloneable {
|
||||||
* to a stream.
|
* to a stream.
|
||||||
*/
|
*/
|
||||||
private void writeObject(ObjectOutputStream s)
|
private void writeObject(ObjectOutputStream s)
|
||||||
throws IOException, ClassNotFoundException {
|
throws IOException {
|
||||||
|
|
||||||
ObjectOutputStream.PutField fields = s.putFields();
|
ObjectOutputStream.PutField fields = s.putFields();
|
||||||
fields.put("baseTypeName", baseTypeName);
|
fields.put("baseTypeName", baseTypeName);
|
||||||
|
|
|
@ -332,7 +332,7 @@ public class SerialStruct implements Struct, Serializable, Cloneable {
|
||||||
* to a stream.
|
* to a stream.
|
||||||
*/
|
*/
|
||||||
private void writeObject(ObjectOutputStream s)
|
private void writeObject(ObjectOutputStream s)
|
||||||
throws IOException, ClassNotFoundException {
|
throws IOException {
|
||||||
|
|
||||||
ObjectOutputStream.PutField fields = s.putFields();
|
ObjectOutputStream.PutField fields = s.putFields();
|
||||||
fields.put("attribs", attribs);
|
fields.put("attribs", attribs);
|
||||||
|
|
|
@ -553,7 +553,7 @@ public class BatchUpdateException extends SQLException {
|
||||||
* to a stream.
|
* to a stream.
|
||||||
*/
|
*/
|
||||||
private void writeObject(ObjectOutputStream s)
|
private void writeObject(ObjectOutputStream s)
|
||||||
throws IOException, ClassNotFoundException {
|
throws IOException {
|
||||||
|
|
||||||
ObjectOutputStream.PutField fields = s.putFields();
|
ObjectOutputStream.PutField fields = s.putFields();
|
||||||
fields.put("updateCounts", updateCounts);
|
fields.put("updateCounts", updateCounts);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue