aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test2/NewExprTry.java
blob: fb779d960d3e1db04969d45b224f058a303ac99a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package test2;

public class NewExprTry {
    public NewExprTry() { this(3); }

    public NewExprTry(int i) {}

    public int run() {
        return foo(3).getClass().getName().length();
    }

    public Object foo(int i) {
        NewExprTry obj = new NewExprTry(i);
        return obj;
    }

    public static void main(String[] args) {
        NewExprTry obj = new NewExprTry(3);
    }
}