test/jdk/java/io/Serializable/evolution/AddedSuperClass/WriteAddedSuperClass.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. |
50 */ |
50 */ |
51 |
51 |
52 import java.io.*; |
52 import java.io.*; |
53 |
53 |
54 class AddedSuperClass implements Serializable { |
54 class AddedSuperClass implements Serializable { |
|
55 private static final long serialVersionUID = 1L; |
|
56 |
55 // Needed at least one field to recreate failure. |
57 // Needed at least one field to recreate failure. |
56 int field; |
58 int field; |
57 } |
59 } |
58 |
60 |
59 class A extends AddedSuperClass implements Serializable { |
61 class A extends AddedSuperClass implements Serializable { |