T6799605.java revision 295
237N/A/*
237N/A * Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
237N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
237N/A *
237N/A * This code is free software; you can redistribute it and/or modify it
237N/A * under the terms of the GNU General Public License version 2 only, as
237N/A * published by the Free Software Foundation.
237N/A *
237N/A * This code is distributed in the hope that it will be useful, but WITHOUT
237N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
237N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
237N/A * version 2 for more details (a copy is included in the LICENSE file that
237N/A * accompanied this code).
237N/A *
237N/A * You should have received a copy of the GNU General Public License version
237N/A * 2 along with this work; if not, write to the Free Software Foundation,
237N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
237N/A *
237N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
237N/A * CA 95054 USA or visit www.sun.com if you need additional information or
237N/A * have any questions.
237N/A */
237N/A
237N/A/**
237N/A * @test
237N/A * @bug 6799605
237N/A * @summary Basic/Raw formatters should use type/symbol printer instead of toString()
237N/A * @author mcimadamore
237N/A * @compile/fail/ref=T6799605.out -XDrawDiagnostics T6799605.java
295N/A * @compile/fail/ref=T6799605.out -XDoldDiags -XDrawDiagnostics T6799605.java
237N/A */
237N/A
237N/Aclass T6799605<X> {
237N/A
237N/A <T extends T6799605<T>> void m(T6799605<T> x1) {}
237N/A <T> void m(T6799605<T> x1, T6799605<T> x2) {}
237N/A <T> void m(T6799605<T> x1, T6799605<T> x2, T6799605<T> x3) {}
237N/A
237N/A void test(T6799605<?> t) {
237N/A m(t);
237N/A m(t, t);
237N/A m(t, t, t);
237N/A }
237N/A}