Skip to content

Commit 23301d5

Browse files
committed
8322282: Incorrect LoaderConstraintTable::add_entry after JDK-8298468
Reviewed-by: coleenp Backport-of: bde650f21e2fa2f7730d3f948105159762e4fdd0
1 parent 5a77c29 commit 23301d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/classfile/loaderConstraints.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2023, 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
@@ -387,7 +387,7 @@ bool LoaderConstraintTable::add_entry(Symbol* class_name,
387387
} else if (pp1 == nullptr) {
388388
pp2->extend_loader_constraint(class_name, loader1, klass);
389389
} else if (pp2 == nullptr) {
390-
pp1->extend_loader_constraint(class_name, loader1, klass);
390+
pp1->extend_loader_constraint(class_name, loader2, klass);
391391
} else {
392392
merge_loader_constraints(class_name, pp1, pp2, klass);
393393
}

0 commit comments

Comments
 (0)