summaryrefslogtreecommitdiff
path: root/libjava/verify.cc
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2001-11-16 23:39:34 +0000
committerTom Tromey <tromey@gcc.gnu.org>2001-11-16 23:39:34 +0000
commitb34e9a5b9fe8113747b0e67e7b76f1da41fcb466 (patch)
treebbbdaad345a9c135fc696285bbe17a0e22c058f5 /libjava/verify.cc
parente13c552619f4d03723b6056b15257c629ba92bb2 (diff)
downloadgcc-b34e9a5b9fe8113747b0e67e7b76f1da41fcb466.tar.gz
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
Diffstat (limited to 'libjava/verify.cc')
-rw-r--r--libjava/verify.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libjava/verify.cc b/libjava/verify.cc
index 5dc90c6ec3d..5928ef50943 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,