From 9f7779305c4ccbb86bb0e6d0ed8bc92a4b8f3b9d Mon Sep 17 00:00:00 2001 From: Axel Boldt-Christmas Date: Tue, 21 May 2024 06:14:34 +0000 Subject: [PATCH] 8332495: java/util/logging/LoggingDeadlock2.java fails with AssertionError: Some tests failed Reviewed-by: jpai, stefank --- test/jdk/java/util/logging/LoggingDeadlock2.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/jdk/java/util/logging/LoggingDeadlock2.java b/test/jdk/java/util/logging/LoggingDeadlock2.java index e8a0bb49d87..dbb804940e2 100644 --- a/test/jdk/java/util/logging/LoggingDeadlock2.java +++ b/test/jdk/java/util/logging/LoggingDeadlock2.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2006, 2023, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2006, 2024, 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 @@ -309,7 +309,7 @@ public class LoggingDeadlock2 { errAccumulator.join(); out = outAccumulator.result(); - err = errAccumulator.result(); + err = errAccumulator.result().replaceAll(".* VM warning:.* deprecated.*\\R", ""); } catch (Throwable t) { throwable = t; }