]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR java/12254 (Regression in java networking code)
authorBryce McKinlay <bryce@mckinlay.net.nz>
Wed, 17 Sep 2003 05:00:46 +0000 (05:00 +0000)
committerBryce McKinlay <bryce@gcc.gnu.org>
Wed, 17 Sep 2003 05:00:46 +0000 (06:00 +0100)
        * class.c (add_miranda_methods): Ensure super-interfaces are laid
        out. Fix for PR java/12254.

From-SVN: r71454

gcc/java/ChangeLog
gcc/java/class.c

index 2991bd23c696f60f2dd380fc33c4e04335a2896e..385cd852ee54eef3f9b73ca4409b1519cabcb3f2 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
         * parse.y (source_end_java_method): Update for new
index 620a8a2e6c96d467a66b239cb076a52d2a150598..a1c7249156b4c0bfda77dba3dd80e249100ef10b 100644 (file)
@@ -1862,10 +1862,12 @@ add_miranda_methods (tree base_class, tree search_class)
        break;
       elt = BINFO_TYPE (elt);
 
-      /* Note that order matters here.  However, all the base classes
-        will have been laid out at this point, so the order will
-        always be correct.  Also, this code must match similar layout
-        code in the runtime.  */
+      /* Ensure that interface methods are seen in declared order.  */
+      layout_class_methods (elt);
+
+      /* 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);
           method_decl; method_decl = TREE_CHAIN (method_decl))
        {