Skip to content

Commit

Permalink
8288651: CDS test HelloUnload.java should not use literal string as C…
Browse files Browse the repository at this point in the history
…lassLoader name

Backport-of: e322e77e9535fc3f37b409a1c805e9f6b728377a
  • Loading branch information
GoeLin committed Oct 4, 2022
1 parent 34d4bae commit 0464eaf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -63,7 +63,7 @@ public static void main(String args[]) throws Exception {
}

URLClassLoader urlClassLoader =
new URLClassLoader("HelloClassLoader", urls, null);
new URLClassLoader("HelloClassLoader" + System.currentTimeMillis(), urls, null);
Class c = Class.forName(className, true, urlClassLoader);
System.out.println(c);
System.out.println(c.getClassLoader());
Expand Down

1 comment on commit 0464eaf

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.