mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 14:23:28 +07:00
18 lines
384 B
Java
18 lines
384 B
Java
class OxfordBug {
|
|
private int f(int m, int n) throws Exception {
|
|
int i = 0;
|
|
while (i < n) {
|
|
i++;
|
|
n = newMethod(m, n, i);
|
|
}
|
|
return n;
|
|
}
|
|
|
|
private int newMethod(int m, int n, int i) throws Exception {
|
|
if (i == m) {
|
|
n += m;
|
|
throw new Exception("" + n);
|
|
}
|
|
return n;
|
|
}
|
|
} |