# HG changeset patch # User hseigel # Date 1501010702 0 # Node ID 16ad138ebfb445afda17d687879980c0b0913409 # Parent 87a18a3061cf370b537dfe7ccc3eff830ef228c5# Parent 53915543333d68589cb045ad7c33c1124c4b219f Merge diff -r 87a18a3061cf -r 16ad138ebfb4 hotspot/src/share/vm/classfile/loaderConstraints.cpp --- a/hotspot/src/share/vm/classfile/loaderConstraints.cpp Tue Jul 25 16:26:35 2017 +0000 +++ b/hotspot/src/share/vm/classfile/loaderConstraints.cpp Tue Jul 25 19:25:02 2017 +0000 @@ -315,7 +315,7 @@ LoaderConstraintEntry *p = *(find_loader_constraint(name, loader)); if (p != NULL && p->klass() != NULL) { assert(p->klass()->is_instance_klass(), "sanity"); - if (p->klass()->is_loaded()) { + if (!p->klass()->is_loaded()) { // Only return fully loaded classes. Classes found through the // constraints might still be in the process of loading. return NULL;