Commit b34e9a5b by Tom Tromey Committed by Tom Tromey

verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle case where field has primitive type.

	* verify.cc (_Jv_BytecodeVerifier::check_field_constant): Handle
	case where field has primitive type.

From-SVN: r47112
parent e13c5526
2001-11-16 Tom Tromey <tromey@redhat.com> 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 * verify.cc (_Jv_BytecodeVerifier::is_assignable_from_slow): New
method. method.
(type::compatible): Use it. (type::compatible): Use it.
......
...@@ -1545,7 +1545,9 @@ private: ...@@ -1545,7 +1545,9 @@ private:
&name, &field_type); &name, &field_type);
if (class_type) if (class_type)
*class_type = ct; *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, type check_method_constant (int index, bool is_interface,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment