equal
deleted
inserted
replaced
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 |