OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [pr26390.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
public class pr26390
2
{
3
  public interface ComponentPeer {
4
    public void setBounds();
5
  }
6
 
7
  public interface ContainerPeer extends ComponentPeer {
8
  }
9
 
10
  public interface WindowPeer extends ContainerPeer {
11
  }
12
 
13
  public interface FramePeer extends WindowPeer {
14
  }
15
 
16
  public static class SwingComponentPeer implements ComponentPeer {
17
    public void setBounds() {
18
    }
19
  }
20
 
21
  public static class SwingContainerPeer
22
    extends SwingComponentPeer implements ContainerPeer
23
  {
24
  }
25
 
26
  public static class SwingWindowPeer
27
    extends SwingContainerPeer implements WindowPeer
28
  {
29
  }
30
 
31
  public static class SwingFramePeer
32
    extends SwingWindowPeer implements FramePeer
33
  {
34
    public void setBounds() {
35
      super.setBounds();
36
    }
37
  }
38
 
39
  public static void main(String[] args)
40
  {
41
    SwingFramePeer s = new SwingFramePeer();
42
    s.setBounds();
43
  }
44
}
45
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.