hotspot/src/share/vm/classfile/classFileParser.cpp
changeset 2269 ee9da33d43ab
parent 2264 55d0115a54fe
child 2534 08dac9ce0cd7
equal deleted inserted replaced
2267:2e18a3d0155b 2269:ee9da33d43ab
  3228 
  3228 
  3229     if (TraceClassResolution) {
  3229     if (TraceClassResolution) {
  3230       // print out the superclass.
  3230       // print out the superclass.
  3231       const char * from = Klass::cast(this_klass())->external_name();
  3231       const char * from = Klass::cast(this_klass())->external_name();
  3232       if (this_klass->java_super() != NULL) {
  3232       if (this_klass->java_super() != NULL) {
  3233         tty->print("RESOLVE %s %s\n", from, instanceKlass::cast(this_klass->java_super())->external_name());
  3233         tty->print("RESOLVE %s %s (super)\n", from, instanceKlass::cast(this_klass->java_super())->external_name());
  3234       }
  3234       }
  3235       // print out each of the interface classes referred to by this class.
  3235       // print out each of the interface classes referred to by this class.
  3236       objArrayHandle local_interfaces(THREAD, this_klass->local_interfaces());
  3236       objArrayHandle local_interfaces(THREAD, this_klass->local_interfaces());
  3237       if (!local_interfaces.is_null()) {
  3237       if (!local_interfaces.is_null()) {
  3238         int length = local_interfaces->length();
  3238         int length = local_interfaces->length();
  3239         for (int i = 0; i < length; i++) {
  3239         for (int i = 0; i < length; i++) {
  3240           klassOop k = klassOop(local_interfaces->obj_at(i));
  3240           klassOop k = klassOop(local_interfaces->obj_at(i));
  3241           instanceKlass* to_class = instanceKlass::cast(k);
  3241           instanceKlass* to_class = instanceKlass::cast(k);
  3242           const char * to = to_class->external_name();
  3242           const char * to = to_class->external_name();
  3243           tty->print("RESOLVE %s %s\n", from, to);
  3243           tty->print("RESOLVE %s %s (interface)\n", from, to);
  3244         }
  3244         }
  3245       }
  3245       }
  3246     }
  3246     }
  3247 
  3247 
  3248 #ifndef PRODUCT
  3248 #ifndef PRODUCT