blob: 590fc4ba98c3558051dc34b8a5e0c84a7176e793 [file] [log] [blame]
/*
* Copyright 2003-2007 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* Parent class implements serializable and provides static initializers
* for a bunch of primitive type class constants
* (required for regtest 4786406, 4780341)
*/
import java.io.*;
public class SuperClassConsts implements Serializable {
// Define class constant values, base class is serializable
private static final long serialVersionUID = 6733861379283244755L;
public static final int SUPER_INT_CONSTANT = 3;
public final static float SUPER_FLOAT_CONSTANT = 99.3f;
public final static double SUPER_DOUBLE_CONSTANT = 33.2;
public final static boolean SUPER_BOOLEAN_CONSTANT = false;
// A token instance field
int instanceField;
public SuperClassConsts(String p) {
}
public native int numValues();
private void writeObject(ObjectOutputStream s)
throws IOException
{
System.err.println("writing state");
}
/**
* readObject is called to restore the state of the FilePermission from
* a stream.
*/
private void readObject(ObjectInputStream s)
throws IOException, ClassNotFoundException
{
System.err.println("reading back state");
}
}