equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2001, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 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. |
34 * @summary Evolution: read evolved class with new field of a non-existing Externalizable class. |
34 * @summary Evolution: read evolved class with new field of a non-existing Externalizable class. |
35 */ |
35 */ |
36 import java.io.*; |
36 import java.io.*; |
37 |
37 |
38 class NewExternFieldClass implements Externalizable { |
38 class NewExternFieldClass implements Externalizable { |
|
39 private static final long serialVersionUID = 1L; |
|
40 |
39 byte l; |
41 byte l; |
40 |
42 |
41 public NewExternFieldClass() { |
43 public NewExternFieldClass() { |
42 l = 0; |
44 l = 0; |
43 } |
45 } |
58 s.writeByte(l); |
60 s.writeByte(l); |
59 } |
61 } |
60 } |
62 } |
61 |
63 |
62 class D implements Serializable { |
64 class D implements Serializable { |
|
65 private static final long serialVersionUID = 1L; |
|
66 |
63 public int x; |
67 public int x; |
64 D(int y) { |
68 D(int y) { |
65 x = y; |
69 x = y; |
66 } |
70 } |
67 } |
71 } |