From e322e77e9535fc3f37b409a1c805e9f6b728377a Mon Sep 17 00:00:00 2001 From: Calvin Cheung Date: Mon, 27 Jun 2022 21:16:02 +0000 Subject: [PATCH] 8288651: CDS test HelloUnload.java should not use literal string as ClassLoader name Reviewed-by: coleenp, iklam --- .../cds/appcds/customLoader/test-classes/HelloUnload.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/HelloUnload.java b/test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/HelloUnload.java index 5df55982f14..d72b5a1e889 100644 --- a/test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/HelloUnload.java +++ b/test/hotspot/jtreg/runtime/cds/appcds/customLoader/test-classes/HelloUnload.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2019, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2019, 2022, 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 @@ -73,7 +73,7 @@ public class HelloUnload { } URLClassLoader urlClassLoader = - new URLClassLoader("HelloClassLoader", urls, null); + new URLClassLoader("HelloClassLoader" + System.currentTimeMillis(), urls, null); Class c = Class.forName(className, true, urlClassLoader); if (keepAlive) { keptC = c;