Skip to content

Commit ad051e5

Browse files
author
duke
committedMay 15, 2024
Automatic merge of jdk:master into master
2 parents 1e7f2df + 61aff6d commit ad051e5

File tree

30 files changed

+34
-166
lines changed

30 files changed

+34
-166
lines changed
 

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/AttachConnector/plugAttachConnect001/plugAttachConnect001.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -147,7 +147,6 @@ private int runThis (String argv[], PrintStream out) {
147147

148148
argsHandler = new ArgumentHandler(argv);
149149
logHandler = new Log(out, argsHandler);
150-
logHandler.enableErrorsSummary(false);
151150

152151
String expectedPlugAttachConnectorName = "PlugAttachConnector001_Name";
153152
String expectedPlugAttachConnectorDescription = "PlugAttachConnector001_Description";

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/AttachConnector/plugAttachConnect002/plugAttachConnect002.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -165,7 +165,6 @@ private int runThis (String argv[], PrintStream out) {
165165

166166
argsHandler = new ArgumentHandler(argv);
167167
logHandler = new Log(out, argsHandler);
168-
logHandler.enableErrorsSummary(false);
169168

170169
String checkedPlugAttachConnectorName = "PlugAttachConnector002_Name";
171170
String checkedPlugAttachConnectorDescription = "PlugAttachConnector002_Description";

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/AttachConnector/plugAttachConnect003/plugAttachConnect003.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -133,7 +133,6 @@ private int runThis (String argv[], PrintStream out) {
133133

134134
argsHandler = new ArgumentHandler(argv);
135135
logHandler = new Log(out, argsHandler);
136-
logHandler.enableErrorsSummary(false);
137136

138137
logAlways("==> nsk/jdi/PlugConnectors/AttachConnector/plugAttachConnect003 test...");
139138
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/LaunchConnector/plugLaunchConnect001/plugLaunchConnect001.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -149,7 +149,6 @@ private int runThis (String argv[], PrintStream out) {
149149

150150
argsHandler = new ArgumentHandler(argv);
151151
logHandler = new Log(out, argsHandler);
152-
logHandler.enableErrorsSummary(false);
153152

154153
String expectedPlugLaunchConnectorName = "PlugLaunchConnector001_Name";
155154
String expectedPlugLaunchConnectorDescription = "PlugLaunchConnector001_Description";

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/LaunchConnector/plugLaunchConnect002/plugLaunchConnect002.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -165,7 +165,6 @@ private int runThis (String argv[], PrintStream out) {
165165

166166
argsHandler = new ArgumentHandler(argv);
167167
logHandler = new Log(out, argsHandler);
168-
logHandler.enableErrorsSummary(false);
169168

170169
String checkedPlugLaunchConnectorName = "PlugLaunchConnector002_Name";
171170
String checkedPlugLaunchConnectorDescription = "PlugLaunchConnector002_Description";

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/LaunchConnector/plugLaunchConnect003/plugLaunchConnect003.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -133,7 +133,6 @@ private int runThis (String argv[], PrintStream out) {
133133

134134
argsHandler = new ArgumentHandler(argv);
135135
logHandler = new Log(out, argsHandler);
136-
logHandler.enableErrorsSummary(false);
137136

138137
logAlways("==> nsk/jdi/PlugConnectors/LaunchConnector/plugLaunchConnect003 test...");
139138
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/ListenConnector/plugListenConnect001/plugListenConnect001.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -149,7 +149,6 @@ private int runThis (String argv[], PrintStream out) {
149149

150150
argsHandler = new ArgumentHandler(argv);
151151
logHandler = new Log(out, argsHandler);
152-
logHandler.enableErrorsSummary(false);
153152

154153
String expectedPlugListenConnectorName = "PlugListenConnector001_Name";
155154
String expectedPlugListenConnectorDescription = "PlugListenConnector001_Description";

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/ListenConnector/plugListenConnect002/plugListenConnect002.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -165,7 +165,6 @@ private int runThis (String argv[], PrintStream out) {
165165

166166
argsHandler = new ArgumentHandler(argv);
167167
logHandler = new Log(out, argsHandler);
168-
logHandler.enableErrorsSummary(false);
169168

170169
String checkedPlugListenConnectorName = "PlugListenConnector002_Name";
171170
String checkedPlugListenConnectorDescription = "PlugListenConnector002_Description";

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/ListenConnector/plugListenConnect003/plugListenConnect003.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -133,7 +133,6 @@ private int runThis (String argv[], PrintStream out) {
133133

134134
argsHandler = new ArgumentHandler(argv);
135135
logHandler = new Log(out, argsHandler);
136-
logHandler.enableErrorsSummary(false);
137136

138137
logAlways("==> nsk/jdi/PlugConnectors/ListenConnector/plugListenConnect003 test...");
139138
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect001/plugMultiConnect001.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -176,7 +176,6 @@ private int runThis (String argv[], PrintStream out) {
176176

177177
argsHandler = new ArgumentHandler(argv);
178178
logHandler = new Log(out, argsHandler);
179-
logHandler.enableErrorsSummary(false);
180179

181180
logAlways("==> nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect001 test...");
182181
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect002/plugMultiConnect002.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -201,7 +201,6 @@ private int runThis (String argv[], PrintStream out) {
201201

202202
argsHandler = new ArgumentHandler(argv);
203203
logHandler = new Log(out, argsHandler);
204-
logHandler.enableErrorsSummary(false);
205204

206205
logAlways("==> nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect002 test...");
207206
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect003/plugMultiConnect003.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -214,7 +214,6 @@ private int runThis (String argv[], PrintStream out) {
214214

215215
argsHandler = new ArgumentHandler(argv);
216216
logHandler = new Log(out, argsHandler);
217-
logHandler.enableErrorsSummary(false);
218217

219218
logAlways("==> nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect003 test...");
220219
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect004/plugMultiConnect004.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -233,7 +233,6 @@ private int runThis (String argv[], PrintStream out) {
233233

234234
argsHandler = new ArgumentHandler(argv);
235235
logHandler = new Log(out, argsHandler);
236-
logHandler.enableErrorsSummary(false);
237236

238237
logAlways("==> nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect004 test...");
239238
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect005/plugMultiConnect005.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -238,7 +238,6 @@ private int runThis (String argv[], PrintStream out) {
238238

239239
argsHandler = new ArgumentHandler(argv);
240240
logHandler = new Log(out, argsHandler);
241-
logHandler.enableErrorsSummary(false);
242241

243242
logAlways("==> nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect005 test...");
244243
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect006/plugMultiConnect006.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -263,7 +263,6 @@ private int runThis (String argv[], PrintStream out) {
263263

264264
argsHandler = new ArgumentHandler(argv);
265265
logHandler = new Log(out, argsHandler);
266-
logHandler.enableErrorsSummary(false);
267266

268267
logAlways("==> nsk/jdi/PlugConnectors/MultiConnectors/plugMultiConnect006 test...");
269268
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/TransportService/transportService001/transportService001.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -185,7 +185,6 @@ private int runThis (String argv[], PrintStream out) {
185185

186186
argsHandler = new ArgumentHandler(argv);
187187
logHandler = new Log(out, argsHandler);
188-
logHandler.enableErrorsSummary(false);
189188

190189
logAlways("==> nsk/jdi/PlugConnectors/TransportService/transportService001 test...");
191190
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/TransportService/transportService002/transportService002.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -185,7 +185,6 @@ private int runThis (String argv[], PrintStream out) {
185185

186186
argsHandler = new ArgumentHandler(argv);
187187
logHandler = new Log(out, argsHandler);
188-
logHandler.enableErrorsSummary(false);
189188

190189
logAlways("==> nsk/jdi/PlugConnectors/TransportService/transportService002 test...");
191190
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/PlugConnectors/TransportService/transportService003/transportService003.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -136,7 +136,6 @@ private int runThis (String argv[], PrintStream out) {
136136

137137
argsHandler = new ArgumentHandler(argv);
138138
logHandler = new Log(out, argsHandler);
139-
logHandler.enableErrorsSummary(false);
140139

141140
logAlways("==> nsk/jdi/PlugConnectors/TransportService/transportService003 test...");
142141
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/genericSignature/genericSignature001.java

-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,6 @@ private int runThis (String argv[], PrintStream out) {
158158
argsHandler = new ArgumentHandler(argv);
159159
verboseMode = argsHandler.verbose();
160160
logHandler = new Log(out, argsHandler);
161-
logHandler.enableErrorsSummary(false);
162161

163162
logAlways("==> nsk/jdi/ReferenceType/genericSignature/genericSignature001 test...");
164163
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/genericSignature/genericSignature001a.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -113,7 +113,6 @@ public static void main (String argv[]) {
113113

114114
argsHandler = new ArgumentHandler(argv);
115115
logHandler = new Log(System.err, argsHandler);
116-
logHandler.enableErrorsSummary(false);
117116
IOPipe pipe = argsHandler.createDebugeeIOPipe();
118117

119118
logOnVerbose(infoLogPrefixHead + "Debugee started!");

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/genericSignature/genericSignature002.java

-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ private int runThis (String argv[], PrintStream out) {
140140
argsHandler = new ArgumentHandler(argv);
141141
verboseMode = argsHandler.verbose();
142142
logHandler = new Log(out, argsHandler);
143-
logHandler.enableErrorsSummary(false);
144143

145144
logAlways("==> nsk/jdi/ReferenceType/genericSignature/genericSignature002 test...");
146145
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/ReferenceType/genericSignature/genericSignature002a.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -86,7 +86,6 @@ public static void main (String argv[]) {
8686

8787
argsHandler = new ArgumentHandler(argv);
8888
logHandler = new Log(System.err, argsHandler);
89-
logHandler.enableErrorsSummary(false);
9089
IOPipe pipe = argsHandler.createDebugeeIOPipe();
9190

9291
logOnVerbose(infoLogPrefixHead + "Debugee started!");

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/genericSignature/genericSignature001.java

-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ private int runThis (String argv[], PrintStream out) {
183183
argsHandler = new ArgumentHandler(argv);
184184
verboseMode = argsHandler.verbose();
185185
logHandler = new Log(out, argsHandler);
186-
logHandler.enableErrorsSummary(false);
187186

188187
logAlways("==> nsk/jdi/TypeComponent/genericSignature/genericSignature001 test...");
189188
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/genericSignature/genericSignature001a.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -112,7 +112,6 @@ public static void main (String argv[]) {
112112

113113
argsHandler = new ArgumentHandler(argv);
114114
logHandler = new Log(System.err, argsHandler);
115-
logHandler.enableErrorsSummary(false);
116115
IOPipe pipe = argsHandler.createDebugeeIOPipe();
117116

118117
logOnVerbose(infoLogPrefixHead + "Debugee started!");

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/genericSignature/genericSignature002.java

-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ private int runThis (String argv[], PrintStream out) {
175175
argsHandler = new ArgumentHandler(argv);
176176
verboseMode = argsHandler.verbose();
177177
logHandler = new Log(out, argsHandler);
178-
logHandler.enableErrorsSummary(false);
179178

180179
logAlways("==> nsk/jdi/TypeComponent/genericSignature/genericSignature002 test...");
181180
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/TypeComponent/genericSignature/genericSignature002a.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -288,7 +288,6 @@ public static void main (String argv[]) {
288288

289289
argsHandler = new ArgumentHandler(argv);
290290
logHandler = new Log(System.err, argsHandler);
291-
logHandler.enableErrorsSummary(false);
292291
IOPipe pipe = argsHandler.createDebugeeIOPipe();
293292

294293
logOnVerbose(infoLogPrefixHead + "Debugee started!");

‎test/hotspot/jtreg/vmTestbase/nsk/jdi/VirtualMachineManager/createVirtualMachine/createVM001.java

-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ private int runThis (String argv[], PrintStream out) {
9494

9595
argsHandler = new ArgumentHandler(argv);
9696
logHandler = new Log(out, argsHandler);
97-
logHandler.enableErrorsSummary(false);
9897

9998
logAlways("==> nsk/jdi/VirtualMachineManager/createVirtualMachine/createVM001 test...");
10099
logOnVerbose

‎test/hotspot/jtreg/vmTestbase/nsk/share/Log.java

+10-112
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -56,9 +56,6 @@
5656
* Error messages appeares in log stream in all modes. Additional log massages,
5757
* printed with <code>display()</code> method will be filtered out, if log mode
5858
* is not verbose. In verbose log made messages of both types are printed.
59-
* Additionally, in verbose mode a summary of all occured errors will be printed
60-
* at the program exit, by automatically invoking method
61-
* <code>printErrorsSummary()</code>.
6259
* <p>
6360
* To provide printing messages from different sources into one log
6461
* with distinct prefixes use internal <code>Log.Logger</code> class.
@@ -69,14 +66,11 @@
6966
* @see ArgumentParser
7067
* @see Log.Logger
7168
*/
72-
public class Log extends FinalizableObject {
69+
public class Log {
7370
/**
7471
* Report step-by-step activity to this stream.
75-
*
76-
* @deprecated Tests should not use this field directly.
7772
*/
78-
@Deprecated
79-
protected PrintStream out = null;
73+
private PrintStream out = null;
8074

8175
/**
8276
* Is log-mode verbose?
@@ -114,7 +108,7 @@ public static final class TraceLevel {
114108

115109
public static int nameToLevel(String value) throws IllegalArgumentException {
116110
Integer level = NAME_TO_LEVEL_MAP.get(value.toLowerCase());
117-
if ( level == null )
111+
if ( level == null )
118112
throw new IllegalArgumentException("Wrong trace level: " + value);
119113

120114
return level;
@@ -135,16 +129,6 @@ public static String getLevelsString() {
135129
*/
136130
private int traceLevel = TraceLevel.DEFAULT;
137131

138-
/**
139-
* Is printing errors summary enabled? Default value is <code>true</code>;
140-
*/
141-
private boolean errorsSummaryEnabled = true;
142-
143-
/**
144-
* Is printing saved verbose messages on error enabled? Default value is <code>true</code>;
145-
*/
146-
private boolean verboseOnErrorEnabled = true;
147-
148132
/**
149133
* This <code>errosBuffer</code> will keep all messages printed via
150134
* <code>complain()</code> method for final summary output.
@@ -188,8 +172,6 @@ public static String getLevelsString() {
188172
*/
189173
@Deprecated
190174
protected Log() {
191-
// install finalizer to print errors summary at exit
192-
registerCleanup();
193175
// Don't log exceptions from this method. It would just add unnecessary logs.
194176
loggedExceptions.add("nsk.share.jdi.SerialExecutionDebugger.executeTests");
195177
}
@@ -234,34 +216,6 @@ public boolean verbose() {
234216
return verbose;
235217
}
236218

237-
/**
238-
* Return <i>true</i> if printing errors summary at exit is enabled.
239-
*/
240-
public boolean isErrorsSummaryEnabled() {
241-
return errorsSummaryEnabled;
242-
}
243-
244-
/**
245-
* Enable or disable printing errors summary at exit.
246-
*/
247-
public void enableErrorsSummary(boolean enable) {
248-
errorsSummaryEnabled = enable;
249-
}
250-
251-
/**
252-
* Return <i>true</i> if printing saved verbose messages on error is enabled.
253-
*/
254-
public boolean isVerboseOnErrorEnabled() {
255-
return errorsSummaryEnabled;
256-
}
257-
258-
/**
259-
* Enable or disable printing saved verbose messages on error.
260-
*/
261-
public void enableVerboseOnError(boolean enable) {
262-
verboseOnErrorEnabled = enable;
263-
}
264-
265219
/**
266220
* Enable or disable verbose mode for printing messages.
267221
*/
@@ -315,7 +269,7 @@ public static String printExceptionToString(Object prefix, Throwable exception)
315269
@Deprecated
316270
public synchronized void println(String message) {
317271
doPrint(message);
318-
if (!verbose() && isVerboseOnErrorEnabled()) {
272+
if (!verbose()) {
319273
keepLog(composeLine(message));
320274
}
321275
}
@@ -371,10 +325,8 @@ public void trace(int level, Object message, Throwable exception) {
371325
public synchronized void display(Object message) {
372326
if (verbose()) {
373327
doPrint(message.toString());
374-
} else if (isVerboseOnErrorEnabled()) {
375-
keepLog(composeLine(message.toString()));
376328
} else {
377-
// ignore
329+
keepLog(composeLine(message.toString()));
378330
}
379331
}
380332

@@ -384,7 +336,7 @@ public synchronized void display(Object message) {
384336
* into <code>errorsBuffer</code>.
385337
*/
386338
public synchronized void complain(Object message) {
387-
if (!verbose() && isVerboseOnErrorEnabled()) {
339+
if (!verbose()) {
388340
PrintStream stream = findOutStream();
389341
stream.println("#> ");
390342
stream.println("#> WARNING: switching log to verbose mode,");
@@ -395,9 +347,6 @@ public synchronized void complain(Object message) {
395347
}
396348
String msgStr = message.toString();
397349
printError(msgStr);
398-
if (isErrorsSummaryEnabled()) {
399-
keepError(msgStr);
400-
}
401350

402351
logExceptionForFailureAnalysis(msgStr);
403352
}
@@ -469,7 +418,9 @@ private void logExceptionForFailureAnalysis(String msg) {
469418
*/
470419
@Deprecated
471420
protected synchronized void logTo(PrintStream stream) {
472-
cleanup(); // flush older log stream
421+
if (out != null) {
422+
out.flush();
423+
}
473424
out = stream;
474425
verbose = true;
475426
}
@@ -573,59 +524,6 @@ private synchronized void keepLog(String message) {
573524
logBuffer.addElement(message);
574525
}
575526

576-
/**
577-
* Keep the given error <code>message</code> into <code>errorsBuffer</code>.
578-
*/
579-
private synchronized void keepError(String message) {
580-
errorsBuffer.addElement(message);
581-
}
582-
583-
/**
584-
* Print errors messages summary from errors buffer if any;
585-
* print a warning message first.
586-
*/
587-
private synchronized void printErrorsSummary() {
588-
if (errorsBuffer.size() <= 0)
589-
return;
590-
591-
PrintStream stream = findOutStream();
592-
stream.println();
593-
stream.println();
594-
stream.println("#> ");
595-
stream.println("#> SUMMARY: Following errors occured");
596-
stream.println("#> during test execution:");
597-
stream.println("#> ");
598-
stream.flush();
599-
600-
for (Enumeration e = errorsBuffer.elements(); e.hasMoreElements(); ) {
601-
printError((String) e.nextElement());
602-
}
603-
}
604-
605-
/**
606-
* Print errors summary if mode is verbose, flush and cancel output stream.
607-
*
608-
* This is replacement of the finalize() method and is called when this
609-
* Log instance becomes unreachable.
610-
*
611-
*/
612-
@Override
613-
public void cleanup() {
614-
if (verbose() && isErrorsSummaryEnabled()) {
615-
printErrorsSummary();
616-
}
617-
if (out != null)
618-
out.flush();
619-
out = null;
620-
}
621-
622-
/**
623-
* Perform finalization at the exit.
624-
*/
625-
public void finalizeAtExit() {
626-
cleanup();
627-
}
628-
629527
/**
630528
* This class can be used as a base for each class that use <code>Log</code>
631529
* for print messages and errors.

‎test/hotspot/jtreg/vmTestbase/nsk/share/jpda/BindServer.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2001, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2001, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -147,8 +147,6 @@ private int runIt(String argv[], PrintStream out) {
147147
}
148148

149149
log = new Log(out, argHandler);
150-
log.enableErrorsSummary(false);
151-
log.enableVerboseOnError(false);
152150
logger = new Log.Logger(log, "");
153151

154152
registerCleanup();

‎test/hotspot/jtreg/vmTestbase/vm/mlvm/share/MlvmTestExecutor.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -235,7 +235,6 @@ private static Class<?> getTestClassFromCallerStack() {
235235
* @see #runMlvmTest(Class<?> testClass, Object[] constructorArgs)
236236
*/
237237
public static void launch(Class<?> testClass, Object[] constructorArgs) {
238-
Env.getLog().enableVerboseOnError(true);
239238

240239
long startTime = System.currentTimeMillis();
241240
boolean passed;

0 commit comments

Comments
 (0)
Please sign in to comment.