mirror of
https://github.com/openjdk/jdk.git
synced 2026-04-13 00:18:59 +00:00
8288651: CDS test HelloUnload.java should not use literal string as ClassLoader name
Reviewed-by: coleenp, iklam
This commit is contained in:
parent
40bf3b1167
commit
e322e77e95
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user