summaryrefslogtreecommitdiff
path: root/libjava/testsuite/libjava.lang/pr26390.java
blob: 09cca7ef9032caaad08ff86e2c094ca32322d883 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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();
  }
}