Skip to content
Permalink
Browse files
8261340: Fix 'deprecated' warnings in the vmTestbase/nsk tests
Reviewed-by: lfoltan, sspitsyn
  • Loading branch information
Harold Seigel committed Feb 9, 2021
1 parent b0e7e5a commit b38d5be8878127aa609adda50a8e7a375f6805dc
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -53,6 +53,7 @@ private IORedirector() {
*
* @see #IORedirector(BufferedReader,Log,String)
*/
@Deprecated
public IORedirector(InputStream in, OutputStream out) {
this();
bin = new BufferedReader(new InputStreamReader(in));
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -75,6 +75,7 @@
*
* @deprecated Tests should not use this field directly.
*/
@Deprecated
protected PrintStream out = null;

/**
@@ -185,6 +186,7 @@ public static String getLevelsString() {
*
* @deprecated Extending test class with Log is obsolete.
*/
@Deprecated
protected Log() {
// install finalizer to print errors summary at exit
Finalizer finalizer = new Finalizer(this);
@@ -311,6 +313,7 @@ public static String printExceptionToString(Object prefix, Throwable exception)
* <code>display()</code> and <code>complain()</code>
* are enough for testing purposes.
*/
@Deprecated
public synchronized void println(String message) {
doPrint(message);
if (!verbose() && isVerboseOnErrorEnabled()) {
@@ -327,6 +330,7 @@ public synchronized void println(String message) {
* <code>display()</code> and <code>complain()</code>
* are enough for testing purposes.
*/
@Deprecated
public synchronized void comment(String message) {
if (!verbose()) {
doPrint(message);
@@ -464,6 +468,7 @@ private void logExceptionForFailureAnalysis(String msg) {
*
* @deprecated This method is obsolete.
*/
@Deprecated
protected synchronized void logTo(PrintStream stream) {
finalize(); // flush older log stream
out = stream;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2020, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -93,6 +93,7 @@ public ArgumentHandler getArgumentHandler() {
* <code>Binder(ArgumentHandler,Log)</code>
* constructor.
*/
@Deprecated
public Binder (String args[]) {
this(args, new Log(System.err));
}
@@ -105,6 +106,7 @@ public Binder (String args[]) {
* <code>Binder(ArgumentHandler,Log)</code>
* constructor.
*/
@Deprecated
public Binder (String args[], Log log) {
this(new ArgumentHandler(args), log);
}
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -307,6 +307,7 @@ final public InputStream getStderr () {
*
* @deprecated Use redirectStdout(Log, String) instead.
*/
@Deprecated
public void redirectStdout(OutputStream out) {
if (stdoutRedirector != null) {
return;
@@ -343,6 +344,7 @@ public void redirectStdout(Log log, String prefix) {
*
* @deprecated Use redirectStderr(Log, String) instead.
*/
@Deprecated
public void redirectStderr(OutputStream err) {
if (stderrRedirector != null) {
return;
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2001, 2018, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2001, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -51,6 +51,7 @@
*
* @see DebugeeArgumentHandler#createDebugeeIOPipe(Log)
*/
@Deprecated
public IOPipe(DebugeeArgumentHandler argumentHandler, Log log) {
this(log, getTestHost(argumentHandler), argumentHandler.getPipePortNumber(),
(long)argumentHandler.getWaitTime() * 60 * 1000, false);
@@ -62,6 +63,7 @@ public IOPipe(DebugeeArgumentHandler argumentHandler, Log log) {
*
* @deprecated Use Debugee.createIOPipe() instead.
*/
@Deprecated
public IOPipe(DebugeeProcess debugee) {
this(debugee.getLog(),
debugee.getArgumentHandler().getDebugeeHost(),

0 comments on commit b38d5be

Please sign in to comment.