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