re PR java/26390 (Problem dispatching method call when method does not exist in superclass)
gcc/java PR java/26390: * parse.y (find_most_specific_methods_list): Added 'class' argument. (lookup_method_invoke): Updated. libjava PR java/26390: * testsuite/libjava.lang/pr26390.out: New file. * testsuite/libjava.lang/pr26390.java: New file. * sources.am, Makefile.in: Rebuilt. * scripts/makemake.tcl: Compile gnu/java/awt/peer/swing. From-SVN: r112499
This commit is contained in:
parent
bd4ca42499
commit
531e214a01
8 changed files with 128 additions and 9 deletions
45
libjava/testsuite/libjava.lang/pr26390.java
Normal file
45
libjava/testsuite/libjava.lang/pr26390.java
Normal file
|
@ -0,0 +1,45 @@
|
|||
public class pr26390
|
||||
{
|
||||
public interface ComponentPeer {
|
||||
public void setBounds();
|
||||
}
|
||||
|
||||
public interface ContainerPeer extends ComponentPeer {
|
||||
}
|
||||
|
||||
public interface WindowPeer extends ContainerPeer {
|
||||
}
|
||||
|
||||
public interface FramePeer extends WindowPeer {
|
||||
}
|
||||
|
||||
public static class SwingComponentPeer implements ComponentPeer {
|
||||
public void setBounds() {
|
||||
}
|
||||
}
|
||||
|
||||
public static class SwingContainerPeer
|
||||
extends SwingComponentPeer implements ContainerPeer
|
||||
{
|
||||
}
|
||||
|
||||
public static class SwingWindowPeer
|
||||
extends SwingContainerPeer implements WindowPeer
|
||||
{
|
||||
}
|
||||
|
||||
public static class SwingFramePeer
|
||||
extends SwingWindowPeer implements FramePeer
|
||||
{
|
||||
public void setBounds() {
|
||||
super.setBounds();
|
||||
}
|
||||
}
|
||||
|
||||
public static void main(String[] args)
|
||||
{
|
||||
SwingFramePeer s = new SwingFramePeer();
|
||||
s.setBounds();
|
||||
}
|
||||
}
|
||||
|
0
libjava/testsuite/libjava.lang/pr26390.out
Normal file
0
libjava/testsuite/libjava.lang/pr26390.out
Normal file
Loading…
Add table
Add a link
Reference in a new issue