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

import java.util.HashMap;

class HashMapWrapper extends HashMap {
    HashMapWrapper(int size, int args) {
        super(size);
    }
}

public class NewExprInTry {
    public int run() {
        return foo(6);
    }

    public int foo(int size) {
        HashMap h;
        try {
            h = new HashMap(size);
        }
        catch (Exception e) {}
        return 1;
    }
}