T8067914.java revision 2781:38f7c632df2b
1272343Sngie/*
2272343Sngie * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3272343Sngie * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4272343Sngie *
5272343Sngie * This code is free software; you can redistribute it and/or modify it
6272343Sngie * under the terms of the GNU General Public License version 2 only, as
7272343Sngie * published by the Free Software Foundation.
8272343Sngie *
9272343Sngie * This code is distributed in the hope that it will be useful, but WITHOUT
10272343Sngie * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11272343Sngie * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12272343Sngie * version 2 for more details (a copy is included in the LICENSE file that
13272343Sngie * accompanied this code).
14272343Sngie *
15272343Sngie * You should have received a copy of the GNU General Public License version
16272343Sngie * 2 along with this work; if not, write to the Free Software Foundation,
17272343Sngie * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18272343Sngie *
19272343Sngie * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20272343Sngie * or visit www.oracle.com if you need additional information or have any
21272343Sngie * questions.
22272343Sngie */
23272343Sngie
24272343Sngieclass S<T> { T t; }
25272343Sngieclass C { class I { }; }
26272343Sngieclass E extends S<C> {{
27272343Sngie  t = new C();
28272343Sngie  ((C) t).new I() { };
29272343Sngie}};
30272343Sngieclass X {
31  public static void main(String[] args) { new E(); }
32}
33
34