aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2002-11-18 18:13:36 +0000
committerTom Tromey <tromey@gcc.gnu.org>2002-11-18 18:13:36 +0000
commit5602b49d692730366a6e554b52fefa604459d136 (patch)
treeb4871257f616f991308049a0a275320ae8f40138 /gcc/java/lex.c
parent441c77991340c51604639124d611a38fed1c5292 (diff)
downloadgcc-5602b49d692730366a6e554b52fefa604459d136.zip
gcc-5602b49d692730366a6e554b52fefa604459d136.tar.gz
gcc-5602b49d692730366a6e554b52fefa604459d136.tar.bz2
re PR java/7912 (invalid verification error for arrays)
Fix for PR java/7912: * expr.c (can_widen_reference_to): Allow cast of array to Cloneable or Serializable. * java-tree.h (java_lang_cloneable_identifier_node): Declare. (java_io_serializable_identifier_node): Likewise. * parse.y (java_lang_cloneable, java_io_serializable): Removed. (valid_ref_assignconv_cast_p): Use new identifier nodes. * lex.c (java_init_lex): Don't initialize java_lang_cloneable and java_io_serializable. * decl.c (java_init_decl_processing): Initialize java_lang_cloneable_identifier_node and java_io_serializable_identifier_node. (java_lang_cloneable_identifier_node): New global. (java_io_serializable_identifier_node): Likewise. From-SVN: r59227
Diffstat (limited to 'gcc/java/lex.c')
-rw-r--r--gcc/java/lex.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index f1589db..eecbcff 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -91,10 +91,6 @@ java_init_lex (finput, encoding)
if (!java_lang_id)
java_lang_id = get_identifier ("java.lang");
- if (!java_lang_cloneable)
- java_lang_cloneable = get_identifier ("java.lang.Cloneable");
- if (!java_io_serializable)
- java_io_serializable = get_identifier ("java.io.Serializable");
if (!inst_id)
inst_id = get_identifier ("inst$");
if (!wpv_id)