< prev index next >

src/hotspot/share/classfile/systemDictionary.cpp

Print this page

        

*** 2599,2609 **** // and all valid field descriptors are supported. // Produce the same java.lang.Class that reflection reports. if (type->utf8_length() == 1) { // It's a primitive. (Void has a primitive mirror too.) ! char ch = (char) type->byte_at(0); assert(is_java_primitive(char2type(ch)) || ch == 'V', ""); return Handle(THREAD, find_java_mirror_for_type(ch)); } else if (FieldType::is_obj(type) || FieldType::is_array(type)) { --- 2599,2609 ---- // and all valid field descriptors are supported. // Produce the same java.lang.Class that reflection reports. if (type->utf8_length() == 1) { // It's a primitive. (Void has a primitive mirror too.) ! char ch = type->char_at(0); assert(is_java_primitive(char2type(ch)) || ch == 'V', ""); return Handle(THREAD, find_java_mirror_for_type(ch)); } else if (FieldType::is_obj(type) || FieldType::is_array(type)) {
< prev index next >