GenLit2.java revision 0
3853N/A/*
3853N/A * Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
3853N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3853N/A *
3853N/A * This code is free software; you can redistribute it and/or modify it
3853N/A * under the terms of the GNU General Public License version 2 only, as
3853N/A * published by the Free Software Foundation.
3853N/A *
3853N/A * This code is distributed in the hope that it will be useful, but WITHOUT
3853N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3853N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3853N/A * version 2 for more details (a copy is included in the LICENSE file that
3853N/A * accompanied this code).
3853N/A *
3853N/A * You should have received a copy of the GNU General Public License version
3853N/A * 2 along with this work; if not, write to the Free Software Foundation,
3853N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3853N/A *
3853N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
3853N/A * CA 95054 USA or visit www.sun.com if you need additional information or
3853N/A * have any questions.
3853N/A */
3853N/A
3853N/A/*
4935N/A * @test
3853N/A * @bug 4942201
3853N/A * @summary java allows class literal on generic type parameter array
3853N/A * @author gafter
3853N/A *
3853N/A * @compile/fail -source 1.5 GenLit2.java
3853N/A */
3853N/A
3853N/Apackage genLit2;
3853N/A
3853N/Aclass U<T> {
3853N/A Class t = T[].class;
3853N/A}
3853N/A