From b34e9a5b9fe8113747b0e67e7b76f1da41fcb466 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Fri, 16 Nov 2001 23:39:34 +0000 Subject: 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 --- libjava/verify.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libjava/verify.cc') diff --git a/libjava/verify.cc b/libjava/verify.cc index 5dc90c6..5928ef5 100644 --- a/libjava/verify.cc +++ b/libjava/verify.cc @@ -1545,7 +1545,9 @@ private: &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, -- cgit v1.1