src/hotspot/share/classfile/systemDictionary.cpp
changeset 51997 9ce37fa2e179
parent 51959 db0c3952de52
child 52062 8dbf1a13af49
equal deleted inserted replaced
51996:84743156e780 51997:9ce37fa2e179
  2599   // and all valid field descriptors are supported.
  2599   // and all valid field descriptors are supported.
  2600   // Produce the same java.lang.Class that reflection reports.
  2600   // Produce the same java.lang.Class that reflection reports.
  2601   if (type->utf8_length() == 1) {
  2601   if (type->utf8_length() == 1) {
  2602 
  2602 
  2603     // It's a primitive.  (Void has a primitive mirror too.)
  2603     // It's a primitive.  (Void has a primitive mirror too.)
  2604     char ch = (char) type->byte_at(0);
  2604     char ch = type->char_at(0);
  2605     assert(is_java_primitive(char2type(ch)) || ch == 'V', "");
  2605     assert(is_java_primitive(char2type(ch)) || ch == 'V', "");
  2606     return Handle(THREAD, find_java_mirror_for_type(ch));
  2606     return Handle(THREAD, find_java_mirror_for_type(ch));
  2607 
  2607 
  2608   } else if (FieldType::is_obj(type) || FieldType::is_array(type)) {
  2608   } else if (FieldType::is_obj(type) || FieldType::is_array(type)) {
  2609 
  2609