test/jdk/java/io/Serializable/failureAtomicity/Foo.template
changeset 58565 baa5969ecf34
parent 47216 71c04702a3d5
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 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.
    26 import java.io.IOException;
    26 import java.io.IOException;
    27 import java.io.Serializable;
    27 import java.io.Serializable;
    28 import failureAtomicity.SerialRef;
    28 import failureAtomicity.SerialRef;
    29 
    29 
    30 public class Foo implements Serializable {
    30 public class Foo implements Serializable {
    31     static final long serialVersionUID = -0L;
    31     private static final long serialVersionUID = -0L;
    32 
    32 
    33     public final int fooPrim;
    33     public final int fooPrim;
    34     public final String fooRef;
    34     public final String fooRef;
    35 
    35 
    36     public final SerialRef ref;    // So we can retrieve a reference to check
    36     public final SerialRef ref;    // So we can retrieve a reference to check