Commit 93634679 by Bryce McKinlay Committed by Bryce McKinlay

re PR java/12254 (Regression in java networking code)

        * class.c (add_miranda_methods): Ensure super-interfaces are laid
        out. Fix for PR java/12254.

From-SVN: r71454
parent cc16baeb
2003-09-16 Bryce McKinlay <bryce@mckinlay.net.nz>
* class.c (add_miranda_methods): Ensure super-interfaces are laid
out. Fix for PR java/12254.
2003-09-11 Richard Henderson <rth@redhat.com> 2003-09-11 Richard Henderson <rth@redhat.com>
* parse.y (source_end_java_method): Update for new * parse.y (source_end_java_method): Update for new
......
...@@ -1862,10 +1862,12 @@ add_miranda_methods (tree base_class, tree search_class) ...@@ -1862,10 +1862,12 @@ add_miranda_methods (tree base_class, tree search_class)
break; break;
elt = BINFO_TYPE (elt); elt = BINFO_TYPE (elt);
/* Note that order matters here. However, all the base classes /* Ensure that interface methods are seen in declared order. */
will have been laid out at this point, so the order will layout_class_methods (elt);
always be correct. Also, this code must match similar layout
code in the runtime. */ /* All base classes will have been laid out at this point, so the order
will be correct. This code must match similar layout code in the
runtime. */
for (method_decl = TYPE_METHODS (elt); for (method_decl = TYPE_METHODS (elt);
method_decl; method_decl = TREE_CHAIN (method_decl)) method_decl; method_decl = TREE_CHAIN (method_decl))
{ {
......
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