aboutsummaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.compile/PR20697.java
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2005-06-23 15:00:50 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2005-06-23 16:00:50 +0100
commitc0f6dc941dcceaf0c5ec5280d0d0d1f34b9ba834 (patch)
treebb89d50e6f17ba5807972c509bb8789e1d8444cb /libjava/testsuite/libjava.compile/PR20697.java
parentfa47911c5600725d7d72e224e4a61829267b00b9 (diff)
downloadgcc-c0f6dc941dcceaf0c5ec5280d0d0d1f34b9ba834.zip
gcc-c0f6dc941dcceaf0c5ec5280d0d0d1f34b9ba834.tar.gz
gcc-c0f6dc941dcceaf0c5ec5280d0d0d1f34b9ba834.tar.bz2
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
Diffstat (limited to 'libjava/testsuite/libjava.compile/PR20697.java')
-rw-r--r--libjava/testsuite/libjava.compile/PR20697.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/libjava/testsuite/libjava.compile/PR20697.java b/libjava/testsuite/libjava.compile/PR20697.java
new file mode 100644
index 0000000..56efb1d
--- /dev/null
+++ b/libjava/testsuite/libjava.compile/PR20697.java
@@ -0,0 +1,29 @@
+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();
+ }
+}