7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /* @test
25 * @summary Basic sanity check to test if default (de)serialization is
26 * transmitting values properly.
27 */
28
29 import java.io.*;
30 import java.util.*;
31
32 class Item implements Serializable {
33
34 static final int ARRAYLEN = 1000;
35 static final int STRLEN = 1000;
36 static Random rand = new Random(System.currentTimeMillis());
37
38 boolean z;
39 byte b;
40 char c;
41 short s;
42 int i;
43 float f;
44 long j;
45 double d;
46
|
7 * published by the Free Software Foundation.
8 *
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /* @test
25 * @summary Basic sanity check to test if default (de)serialization is
26 * transmitting values properly.
27 * @key randomness
28 */
29
30 import java.io.*;
31 import java.util.*;
32
33 class Item implements Serializable {
34
35 static final int ARRAYLEN = 1000;
36 static final int STRLEN = 1000;
37 static Random rand = new Random(System.currentTimeMillis());
38
39 boolean z;
40 byte b;
41 char c;
42 short s;
43 int i;
44 float f;
45 long j;
46 double d;
47
|