0N/A/*
553N/A * Copyright (c) 2005, 2006, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
0N/A * published by the Free Software Foundation.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
553N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
553N/A * or visit www.oracle.com if you need additional information or have any
553N/A * questions.
0N/A */
0N/A
0N/A/*
0N/A * @test
0N/A * @bug 6215213
0N/A * @summary Compiler JDK1.5 crashes with uses of generics
0N/A * @author Peter von der Ah\u00e9
0N/A * @compile T6215213.java
0N/A */
0N/A
0N/Apublic class T6215213 {
0N/A static class Box<T> {}
0N/A static class Box1<T extends T6215213> {}
0N/A static class Pair<T, S> {}
0N/A static class Pair1<T extends T6215213, S> {}
0N/A static class Triple<T, S, U> {}
0N/A static class Triple1<T extends T6215213, S, U extends T6215213> {}
0N/A static class Quad<T, S, U, V> {}
0N/A static class Quad1<T extends T6215213, S, U extends T6215213, V> {}
0N/A
0N/A <T> Box<T> testBox(T t) { return null; }
0N/A <T extends T6215213> Box1<T> testBox1(T t) { return null; }
0N/A <T> Pair<T, T> testPair(T t) { return null; }
0N/A <T extends T6215213> Pair1<T, T> testPair1(T t) { return null; }
0N/A <T> Triple<T, T, T> testTriple(T t) { return null; }
0N/A <T extends T6215213> Triple1<T, T, T> testTriple1(T t) { return null; }
0N/A <T> Quad<T, T, T, T> testQuad(T t) { return null; }
0N/A <T extends T6215213> Quad1<T, T, T, T> testQuad1(T t) { return null; }
0N/A
0N/A void testAll() {
0N/A Box<?> box = testBox(null);
0N/A Box1<?> box1 = testBox1(null);
0N/A Pair<?, ?> pair = testPair(null);
0N/A Pair1<?, ?> pair1 = testPair1(null);
0N/A Triple<?, ?, ?> triple = testTriple(null);
0N/A Triple1<?, ?, ?> triple1 = testTriple1(null);
0N/A Quad<?, ?, ?, ?> quad = testQuad(null);
0N/A Quad1<?, ?, ?, ?> quad1 = testQuad1(null);
0N/A }
0N/A}