blob: f728dbe72c826e62f8e8a25fd76663f8b1e0f780 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
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) {
@SuppressWarnings("unused")
NewExprTry obj = new NewExprTry(3);
}
}
|