jdk/test/sun/rmi/runtime/Log/4504153/Test4504153.java
changeset 15005 796ffc400e9e
parent 5506 202f599c92aa
child 30820 0d4717a011d3
equal deleted inserted replaced
15004:cf5d2d5094cc 15005:796ffc400e9e
     1 /*
     1 /*
     2  * Copyright (c) 2002, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 2013, 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.
    46 
    46 
    47         ByteArrayOutputStream out = new ByteArrayOutputStream();
    47         ByteArrayOutputStream out = new ByteArrayOutputStream();
    48         ByteArrayOutputStream err = new ByteArrayOutputStream();
    48         ByteArrayOutputStream err = new ByteArrayOutputStream();
    49         JavaVM vm = new JavaVM(StartRegistry.class.getName(),
    49         JavaVM vm = new JavaVM(StartRegistry.class.getName(),
    50                                "-Dsun.rmi.transport.logLevel=v", "", out, err);
    50                                "-Dsun.rmi.transport.logLevel=v", "", out, err);
    51         vm.start();
    51         vm.execute();
    52         vm.getVM().waitFor();
       
    53 
    52 
    54         String errString = err.toString();
    53         String errString = err.toString();
    55 
    54 
    56         System.err.println(
    55         System.err.println(
    57             "child process's standard error output:\n\n" + err + "\n");
    56             "child process's standard error output:\n\n" + err + "\n");