diff options
author | Bryce McKinlay <bryce@mckinlay.net.nz> | 2003-09-17 05:00:46 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2003-09-17 06:00:46 +0100 |
commit | 936346797b01c6f191bd904f1a6bdb36ab43317d (patch) | |
tree | 131f9846a545cba538641fd8b8a69a1b88d0d1a2 /gcc/java | |
parent | cc16baeb1b582b28d47959d841309020eaf615e4 (diff) | |
download | gcc-936346797b01c6f191bd904f1a6bdb36ab43317d.zip gcc-936346797b01c6f191bd904f1a6bdb36ab43317d.tar.gz gcc-936346797b01c6f191bd904f1a6bdb36ab43317d.tar.bz2 |
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
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/java/class.c | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 2991bd2..385cd85 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -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 diff --git a/gcc/java/class.c b/gcc/java/class.c index 620a8a2..a1c7249 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -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)) { |