提交 2a2ddc4e 编写于 作者: C coffeys

8029347: sun/rmi/runtime/Log/checkLogging/CheckLogging.java fails in nightly intermittently

Reviewed-by: alanb
上级 962ee3a4
......@@ -76,6 +76,7 @@ import java.rmi.registry.Registry;
public class CheckLogging {
private static int REGISTRY_PORT = -1;
private static String LOCATION;
private static Logger logger;
private static final ByteArrayOutputStream clientCallOut =
new ByteArrayOutputStream();
......@@ -89,8 +90,8 @@ public class CheckLogging {
System.err.println("set default stream");
LogStream.setDefaultStream(new PrintStream(clientCallOut));
} else {
Logger.getLogger("sun.rmi.client.call").
addHandler(new InternalStreamHandler(clientCallOut));
logger = Logger.getLogger("sun.rmi.client.call");
logger.addHandler(new InternalStreamHandler(clientCallOut));
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册