equal
deleted
inserted
replaced
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 B extends A implements Runnable { |
31 public class B extends A implements Runnable { |
|
32 private static final long serialVersionUID = 1L; |
|
33 |
32 public B() { super(0xDEADBEEF); } |
34 public B() { super(0xDEADBEEF); } |
33 |
35 |
34 // verify superclass data still present |
36 // verify superclass data still present |
35 public void run() { |
37 public void run() { |
36 if (i != 0xDEADBEEF) { |
38 if (i != 0xDEADBEEF) { |