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 /*
25 * @test
26 * @bug 4652922
27 *
28 * @summary synopsis: ReliableLog.update should pad records to 4-byte
29 * boundaries
30 * @author Ann Wollrath
31 *
32 * @run main/othervm/timeout=240 LogTest
33 */
34
35 import sun.rmi.log.LogHandler;
36 import sun.rmi.log.ReliableLog;
37 import java.io.FileDescriptor;
38 import java.io.FileNotFoundException;
39 import java.io.IOException;
40 import java.io.Serializable;
41
42 public class LogTest {
43
44 private static int crashPoint = 0;
45 private static boolean spansBoundary = false;
46 private static ReliableLog log = null;
47 private static Counter counter = new Counter();
48
49 public static void main(String[] args) throws Exception {
50
51 System.err.println("\nRegression test for bug 4652922\n");
|
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 /*
25 * @test
26 * @bug 4652922
27 *
28 * @summary synopsis: ReliableLog.update should pad records to 4-byte
29 * boundaries
30 * @author Ann Wollrath
31 *
32 * @modules java.rmi/sun.rmi.log
33 * @run main/othervm/timeout=240 LogTest
34 */
35
36 import sun.rmi.log.LogHandler;
37 import sun.rmi.log.ReliableLog;
38 import java.io.FileDescriptor;
39 import java.io.FileNotFoundException;
40 import java.io.IOException;
41 import java.io.Serializable;
42
43 public class LogTest {
44
45 private static int crashPoint = 0;
46 private static boolean spansBoundary = false;
47 private static ReliableLog log = null;
48 private static Counter counter = new Counter();
49
50 public static void main(String[] args) throws Exception {
51
52 System.err.println("\nRegression test for bug 4652922\n");
|