src/hotspot/share/classfile/classFileParser.cpp
changeset 49677 a1a7456dd8b9
parent 49594 898ef81cbc0e
child 49716 450d709262c1
equal deleted inserted replaced
49676:0bb0c2f27ca9 49677:a1a7456dd8b9
  5422   // size is equal to the number of methods in the class. If
  5422   // size is equal to the number of methods in the class. If
  5423   // that changes, then InstanceKlass::idnum_can_increment()
  5423   // that changes, then InstanceKlass::idnum_can_increment()
  5424   // has to be changed accordingly.
  5424   // has to be changed accordingly.
  5425   ik->set_initial_method_idnum(ik->methods()->length());
  5425   ik->set_initial_method_idnum(ik->methods()->length());
  5426 
  5426 
       
  5427   ik->set_this_class_index(_this_class_index);
       
  5428 
  5427   if (is_anonymous()) {
  5429   if (is_anonymous()) {
  5428     // _this_class_index is a CONSTANT_Class entry that refers to this
  5430     // _this_class_index is a CONSTANT_Class entry that refers to this
  5429     // anonymous class itself. If this class needs to refer to its own methods or
  5431     // anonymous class itself. If this class needs to refer to its own methods or
  5430     // fields, it would use a CONSTANT_MethodRef, etc, which would reference
  5432     // fields, it would use a CONSTANT_MethodRef, etc, which would reference
  5431     // _this_class_index. However, because this class is anonymous (it's
  5433     // _this_class_index. However, because this class is anonymous (it's