aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/test2/NewExprInTry.java
blob: 804a7c8df268968f88ef58b6fe20b5565a39b659 (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
25
26
27
package test2;

import java.util.HashMap;

class HashMapWrapper extends HashMap {
    /** default serialVersionUID */
    private static final long serialVersionUID = 1L;

    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;
    }
}