T4784219.java revision 288:84061bd68019
1241899Sdteske/*
2241899Sdteske * Copyright 2003 Sun Microsystems, Inc.  All Rights Reserved.
3241899Sdteske * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4241899Sdteske *
5241899Sdteske * This code is free software; you can redistribute it and/or modify it
6241899Sdteske * under the terms of the GNU General Public License version 2 only, as
7241899Sdteske * published by the Free Software Foundation.
8241899Sdteske *
9241899Sdteske * This code is distributed in the hope that it will be useful, but WITHOUT
10241899Sdteske * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11241899Sdteske * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12241899Sdteske * version 2 for more details (a copy is included in the LICENSE file that
13241899Sdteske * accompanied this code).
14241899Sdteske *
15241899Sdteske * You should have received a copy of the GNU General Public License version
16241899Sdteske * 2 along with this work; if not, write to the Free Software Foundation,
17241899Sdteske * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18241899Sdteske *
19241899Sdteske * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
20241899Sdteske * CA 95054 USA or visit www.sun.com if you need additional information or
21241899Sdteske * have any questions.
22241899Sdteske */
23241899Sdteske
24241899Sdteske/*
25241899Sdteske * @test
26241899Sdteske * @bug 4784219
27241899Sdteske * @summary generics: compiler crash after diagnostic
28241899Sdteske * @author gafter
29241899Sdteske *
30241899Sdteske * @compile  T4683314.java
31241899Sdteske */
32241899Sdteske
33241899Sdteskepublic class T4784219 {
34241899Sdteske    static <T, A> T<A, A> genericNew() {
35241899Sdteske        genericNew();
36241899Sdteske    }
37241899Sdteske}
38241899Sdteske