test/jdk/java/io/Serializable/GetField/Read2.java
changeset 58565 baa5969ecf34
parent 47216 71c04702a3d5
equal deleted inserted replaced
58564:218a1a642c6f 58565:baa5969ecf34
     1 /*
     1 /*
     2  * Copyright (c) 2001, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2001, 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     int i;
    39     int i;
    40     long j;
    40     long j;
    41     float f;
    41     float f;
    42     double d;
    42     double d;
    43     String str;
    43     String str;
       
    44     @SuppressWarnings("serial") /* Incorrect declarations are being tested */
    44     Object extra;
    45     Object extra;
    45 
    46 
    46     private void readObject(ObjectInputStream in)
    47     private void readObject(ObjectInputStream in)
    47         throws IOException, ClassNotFoundException
    48         throws IOException, ClassNotFoundException
    48     {
    49     {