< prev index next >

src/hotspot/share/classfile/classFileParser.cpp

Print this page

        

*** 5422,5431 **** --- 5422,5433 ---- // size is equal to the number of methods in the class. If // that changes, then InstanceKlass::idnum_can_increment() // has to be changed accordingly. ik->set_initial_method_idnum(ik->methods()->length()); + ik->set_this_class_index(_this_class_index); + if (is_anonymous()) { // _this_class_index is a CONSTANT_Class entry that refers to this // anonymous class itself. If this class needs to refer to its own methods or // fields, it would use a CONSTANT_MethodRef, etc, which would reference // _this_class_index. However, because this class is anonymous (it's
< prev index next >