Commit c0f6dc94 by Bryce McKinlay Committed by Bryce McKinlay

re PR java/20697 (Invalid Can't find method error on call to super)

	PR java/20697
	* parse.y (find_most_specific_methods_list): Remove special case for
	inner classes.

From-SVN: r101270
parent fa47911c
2005-06-23 Bryce McKinlay <mckinlay@redhat.com>
PR java/20697
* parse.y (find_most_specific_methods_list): Remove special case for
inner classes.
2005-06-15 Tom Tromey <tromey@redhat.com>
PR libgcj/21906:
......
......@@ -11416,13 +11416,9 @@ find_most_specific_methods_list (tree list)
if (argument_types_convertible (method_v, current_v))
{
if (valid_method_invocation_conversion_p
(DECL_CONTEXT (method_v), DECL_CONTEXT (current_v))
|| (INNER_CLASS_TYPE_P (DECL_CONTEXT (current_v))
&& enclosing_context_p (DECL_CONTEXT (method_v),
DECL_CONTEXT (current_v))))
(DECL_CONTEXT (method_v), DECL_CONTEXT (current_v)))
{
int v = (DECL_SPECIFIC_COUNT (current_v) +=
(INNER_CLASS_TYPE_P (DECL_CONTEXT (current_v)) ? 2 : 1));
int v = (DECL_SPECIFIC_COUNT (current_v) += 1);
max = (v > max ? v : max);
}
}
......
2005-06-23 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.compile/PR20697.java: New test-case.
2005-06-22 Kelley Cook <kcook@gcc.gnu.org>
* Makefile.am (SUBDIRS): Use append for conditional.
......
public class PR20697
{
public interface I
{
public void m();
}
public static class A2 implements I
{
public void m()
{
return;
}
}
}
class Test extends PR20697.A2
{
public void m()
{
return;
}
public void n()
{
m();
}
}
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