* verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
case where field has primitive type.
From-SVN: r47112
2001-11-16 Tom Tromey <tromey@redhat.com>
+ * verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
+ case where field has primitive type.
+
* verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
method.
(type::compatible): Use it.
&name, &field_type);
if (class_type)
*class_type = ct;
- return type (field_type);
+ if (field_type->data[0] == '[' || field_type->data[0] == 'L')
+ return type (field_type);
+ return get_type_val_for_signature (field_type->data[0]);
}
type check_method_constant (int index, bool is_interface,