test/jdk/java/io/Serializable/superclassDataLoss/A.java
changeset 58565 baa5969ecf34
parent 47216 71c04702a3d5
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 2000, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    27  *          descriptor is matched with local class that is not a superclass of
    27  *          descriptor is matched with local class that is not a superclass of
    28  *          the deserialized instance's class.
    28  *          the deserialized instance's class.
    29  */
    29  */
    30 
    30 
    31 public class A implements java.io.Serializable {
    31 public class A implements java.io.Serializable {
       
    32     private static final long serialVersionUID = 1L;
       
    33 
    32     protected final int i;
    34     protected final int i;
    33     protected A(int i) { this.i = i; }
    35     protected A(int i) { this.i = i; }
    34 }
    36 }