• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 package test2;
2 
3 class SuperClass {
foo()4     public void foo() throws Exception {}
5 }
6 
7 public class SuperCall extends SuperClass {
8     int i = 0;
bar()9     public int bar() throws Exception {
10         foo();
11         return 1;
12     }
13 
foo()14     public void foo() throws Exception {
15         if (++i > 5)
16             throw new Exception("infinite regression?");
17 
18         super.foo();
19     }
20 }
21