PR target/27599
[official-gcc.git] / libjava / classpath / test / java.io / OOSNoCallDefault.java
blob1e41754c4d081023cb5ec145463159900887f0ab
2 import java.io.*;
4 public class OOSNoCallDefault implements Serializable
6 int x;
7 String s;
8 boolean b;
10 OOSNoCallDefault()
13 OOSNoCallDefault( int X, String S, boolean B )
15 x = X;
16 s = S;
17 b = B;
20 public boolean equals( Object o )
22 OOSNoCallDefault oo = (OOSNoCallDefault)o;
23 return oo.x == x
24 && oo.b == b
25 && oo.s.equals( s );
28 private void writeObject( ObjectOutputStream oos ) throws IOException
30 oos.writeInt( x );
31 oos.writeObject( s );
32 oos.writeBoolean( b );
35 private void readObject( ObjectInputStream ois )
36 throws ClassNotFoundException, IOException
38 x = ois.readInt();
39 s = (String)ois.readObject();
40 b = ois.readBoolean();