diff options
author | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-03-13 21:01:05 -0800 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-03-13 21:01:05 -0800 |
commit | c2952b018a1baf25b12c339f2b96518425164295 (patch) | |
tree | bf1619873e76c17441a1423f1eaba6a4a64f054a /gcc/java/verify.c | |
parent | e4476d1cbd567593c068dba421b5e089f7ccbcd5 (diff) | |
download | gcc-c2952b018a1baf25b12c339f2b96518425164295.zip gcc-c2952b018a1baf25b12c339f2b96518425164295.tar.gz gcc-c2952b018a1baf25b12c339f2b96518425164295.tar.bz2 |
Added Java 1.1 language features.
From-SVN: r32517
Diffstat (limited to 'gcc/java/verify.c')
-rw-r--r-- | gcc/java/verify.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/verify.c b/gcc/java/verify.c index 97c78ec..3aff5e4 100644 --- a/gcc/java/verify.c +++ b/gcc/java/verify.c @@ -940,11 +940,10 @@ verify_jvm_instructions (jcf, byte_ops, length) pop_argument_types (TYPE_ARG_TYPES (method_type)); /* Can't invoke <clinit> */ - if (method_name == clinit_identifier_node) + if (ID_CLINIT_P (method_name)) VERIFICATION_ERROR ("invoke opcode can't invoke <clinit>"); /* Apart invokespecial, can't invoke <init> */ - if (op_code != OPCODE_invokespecial - && method_name == init_identifier_node) + if (op_code != OPCODE_invokespecial && ID_INIT_P (method_name)) VERIFICATION_ERROR ("invoke opcode can't invoke <init>"); if (op_code != OPCODE_invokestatic) |