< prev index next >

src/hotspot/share/oops/instanceKlass.cpp

Print this page
rev 49250 : [mq]: JDK-8199781.patch

*** 2405,2426 **** // Same package is determined by comparing class loader // and package entries. Both must be the same. This rule // applies even to classes that are defined in the unnamed // package, they still must have the same class loader. ! if ((classloader1 == classloader2) && (classpkg1 == classpkg2)) { return true; } return false; } // return true if this class and other_class are in the same package. Classloader // and classname information is enough to determine a class's package bool InstanceKlass::is_same_class_package(oop other_class_loader, const Symbol* other_class_name) const { ! if (class_loader() != other_class_loader) { return false; } if (name()->fast_compare(other_class_name) == 0) { return true; } --- 2405,2426 ---- // Same package is determined by comparing class loader // and package entries. Both must be the same. This rule // applies even to classes that are defined in the unnamed // package, they still must have the same class loader. ! if (oopDesc::equals(classloader1, classloader2) && (classpkg1 == classpkg2)) { return true; } return false; } // return true if this class and other_class are in the same package. Classloader // and classname information is enough to determine a class's package bool InstanceKlass::is_same_class_package(oop other_class_loader, const Symbol* other_class_name) const { ! if (!oopDesc::equals(class_loader(), other_class_loader)) { return false; } if (name()->fast_compare(other_class_name) == 0) { return true; }
< prev index next >