Commit 58e0c554 by Andrew Haley Committed by Andrew Haley

re PR java/26192 (ICE while compiling jar or class file (azureus))

2006-02-09  Andrew Haley  <aph@redhat.com>

        PR java/26192
        * expr.c (expand_invoke): Allow methods in arrays to be resolved
        in their superclass.

        * typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for
        array types.

From-SVN: r110799
parent 1651647c
2006-02-09 Andrew Haley <aph@redhat.com>
PR java/26192
* expr.c (expand_invoke): Allow methods in arrays to be resolved
in their superclass.
* typeck.c (build_java_array_type): Generate TYPE_STUB_DECLs for
array types.
2006-02-08 Tom Tromey <tromey@redhat.com>
PR java/22578:
......
......@@ -2279,6 +2279,7 @@ expand_invoke (int opcode, int method_ref_index, int nargs ATTRIBUTE_UNUSED)
superclass chain when we're BC-compiling. */
if (! flag_verify_invocations
&& method
&& ! TYPE_ARRAY_P (self_type)
&& self_type != DECL_CONTEXT (method))
method = NULL_TREE;
......
......@@ -385,9 +385,11 @@ build_java_array_type (tree element_type, HOST_WIDE_INT length)
else
strcpy (suffix, "[]");
TYPE_NAME (t)
= TYPE_STUB_DECL (t)
= build_decl (TYPE_DECL,
identifier_subst (el_name, "", '.', '.', suffix),
t);
TYPE_DECL_SUPPRESS_DEBUG (TYPE_STUB_DECL (t)) = true;
}
set_java_signature (t, sig);
......
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