< prev index next >

src/hotspot/share/classfile/defaultMethods.cpp

Print this page

        

@@ -859,11 +859,11 @@
 
   if (new_methods->length() > 0) {
     ConstantPool* cp = bpool->create_constant_pool(CHECK);
     if (cp != klass->constants()) {
       // Copy resolved anonymous class into new constant pool.
-      if (klass->is_unsafe_anonymous()) {
+      if (klass->is_unsafe_anonymous() || klass->is_nonfindable()) {
         cp->klass_at_put(klass->this_class_index(), klass);
       }
       klass->class_loader_data()->add_to_deallocate_list(klass->constants());
       klass->set_constants(cp);
       cp->set_pool_holder(klass);
< prev index next >