test/jdk/java/io/Serializable/NPEProvoker/NPEProvoker.java
changeset 58565 baa5969ecf34
parent 47216 71c04702a3d5
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2007, 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.
    39 import java.io.ObjectOutput;
    39 import java.io.ObjectOutput;
    40 import java.io.ObjectOutputStream;
    40 import java.io.ObjectOutputStream;
    41 import java.util.ArrayList;
    41 import java.util.ArrayList;
    42 
    42 
    43 public class NPEProvoker implements java.io.Externalizable {
    43 public class NPEProvoker implements java.io.Externalizable {
       
    44     private static final long serialVersionUID = 1L;
       
    45 
    44     private String test = "test";
    46     private String test = "test";
    45 
    47 
    46     public void readExternal(ObjectInput in) throws IOException,
    48     public void readExternal(ObjectInput in) throws IOException,
    47         ClassNotFoundException
    49         ClassNotFoundException
    48     {
    50     {