test/jdk/java/io/Serializable/evolution/AddedSuperClass/ReadAddedSuperClass2.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2007, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 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. |
40 */ |
40 */ |
41 |
41 |
42 import java.io.*; |
42 import java.io.*; |
43 |
43 |
44 class AddedSuperClass implements Serializable { |
44 class AddedSuperClass implements Serializable { |
|
45 private static final long serialVersionUID = 1L; |
|
46 |
45 // Needed at least one field to recreate failure. |
47 // Needed at least one field to recreate failure. |
46 int field; |
48 int field; |
47 } |
49 } |
48 |
50 |
49 class A implements Serializable { |
51 class A implements Serializable { |