[PATCH] Java: fix for gcj/285, gcj/298.
Thu Oct 19 20:56:00 GMT 2000
This patch from Bryce McKinlay fixes gcj/285 and gcj/298:
I'm checking it in.
2000-07-18 Bryce McKinlay <email@example.com>
* parse.y (find_most_specific_methods_list): Select the only
non-abstract method even if max has been set.
Fixes gcj/285, gcj/298.
RCS file: /cvs/gcc/egcs/gcc/java/parse.y,v
retrieving revision 1.218
diff -u -p -r1.218 parse.y
--- parse.y 2000/10/19 07:51:54 1.218
+++ parse.y 2000/10/20 02:28:33
@@ -10600,9 +10600,9 @@ find_most_specific_methods_list (list)
TREE_CHAIN (new_list) = NULL_TREE;
- /* We have several, we couldn't find a most specific, all but one are
- abstract, we pick the only non abstract one. */
- if (candidates > 0 && !max && (candidates == abstract+1))
+ /* We have several (we couldn't find a most specific), all but one
+ are abstract, we pick the only non abstract one. */
+ if (candidates > 0 && (candidates == abstract+1))
for (current = new_list; current; current = TREE_CHAIN (current))
if (!METHOD_ABSTRACT (TREE_VALUE (current)))
More information about the Gcc-patches