src/hotspot/share/classfile/systemDictionary.cpp
changeset 58722 cba8afa5cfed
parent 58499 d62c7224d5b7
child 58756 b7aa58d7f5aa
equal deleted inserted replaced
58720:ae0af9fb3dbb 58722:cba8afa5cfed
  2531   // Produce the same java.lang.Class that reflection reports.
  2531   // Produce the same java.lang.Class that reflection reports.
  2532   if (type->utf8_length() == 1) {
  2532   if (type->utf8_length() == 1) {
  2533 
  2533 
  2534     // It's a primitive.  (Void has a primitive mirror too.)
  2534     // It's a primitive.  (Void has a primitive mirror too.)
  2535     char ch = type->char_at(0);
  2535     char ch = type->char_at(0);
  2536     assert(is_java_primitive(char2type(ch)) || ch == 'V', "");
  2536     assert(is_java_primitive(char2type(ch)) || ch == JVM_SIGNATURE_VOID, "");
  2537     return Handle(THREAD, find_java_mirror_for_type(ch));
  2537     return Handle(THREAD, find_java_mirror_for_type(ch));
  2538 
  2538 
  2539   } else if (FieldType::is_obj(type) || FieldType::is_array(type)) {
  2539   } else if (FieldType::is_obj(type) || FieldType::is_array(type)) {
  2540 
  2540 
  2541     // It's a reference type.
  2541     // It's a reference type.