1/*
2 * @test    /nodynamiccopyright/
3 * @bug     6379327
4 * @summary Erroneous catch block not detected with anonymous class declaration
5 * @author  Peter Jones, Wei Tao
6 * @compile/fail/ref=T6379327.out -XDrawDiagnostics T6379327.java
7 */
8
9import java.security.*;
10public class T6379327 {
11    public static void main(String[] args) {
12        final String name = args[0];
13        try {
14            new PrivilegedExceptionAction() {
15                public Object run() throws ClassNotFoundException {
16                    return Class.forName(name);
17                }
18            };
19        } catch (ClassNotFoundException e) {
20            e.printStackTrace();
21        }
22    }
23}
24