src/share/vm/runtime/reflection.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File bug_8030221 Cdiff src/share/vm/runtime/reflection.cpp

src/share/vm/runtime/reflection.cpp

Print this page

        

*** 658,672 **** access.is_public()) { return true; } const Klass* host_class = current_class; ! while (host_class->is_instance_klass() && InstanceKlass::cast(host_class)->is_anonymous()) { ! const Klass* next_host_class = InstanceKlass::cast(host_class)->host_klass(); ! if (next_host_class == NULL) break; ! host_class = next_host_class; } if (host_class == field_class) { return true; } --- 658,674 ---- access.is_public()) { return true; } const Klass* host_class = current_class; ! if (host_class->is_instance_klass() && InstanceKlass::cast(host_class)->is_anonymous()) { ! host_class = InstanceKlass::cast(host_class)->host_klass(); ! assert(host_class != NULL, "Anonymous class has null host class"); ! assert(!host_class->is_instance_klass() || ! !InstanceKlass::cast(host_class)->is_anonymous(), ! "host_class should not be anonymous"); } if (host_class == field_class) { return true; }
src/share/vm/runtime/reflection.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File