NameOrder.java revision 0
4183N/A/*
4183N/A * Copyright 2003 Sun Microsystems, Inc. All Rights Reserved.
4183N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4183N/A *
4183N/A * This code is free software; you can redistribute it and/or modify it
4183N/A * under the terms of the GNU General Public License version 2 only, as
4183N/A * published by the Free Software Foundation.
4183N/A *
4183N/A * This code is distributed in the hope that it will be useful, but WITHOUT
4183N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4183N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4183N/A * version 2 for more details (a copy is included in the LICENSE file that
4183N/A * accompanied this code).
4183N/A *
4183N/A * You should have received a copy of the GNU General Public License version
4183N/A * 2 along with this work; if not, write to the Free Software Foundation,
4183N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
4183N/A *
4183N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
4183N/A * CA 95054 USA or visit www.sun.com if you need additional information or
4183N/A * have any questions.
4183N/A */
4183N/A
4183N/A/*
4183N/A * @test
4183N/A * @bug 4851006
4183N/A * @summary generics: type inference failure due to a bug in ClassSymbol.isLess
4183N/A * @author gafter
4183N/A *
4183N/A * @compile -source 1.5 NameOrder.java
4183N/A */
4183N/A
4183N/Apackage test.tools.javac.generics.NameOrder;
4183N/A
4183N/Ainterface a {}
4183N/Ainterface b {}
4183N/Ainterface c {}
4183N/A
4183N/Aclass A implements a, b {}
4183N/Aclass B implements c, a {}
4183N/A
4183N/A// this is how to trigger a symptom:
4183N/Aabstract class C {
4183N/A <T> T f(T t1, T t2) { return null; }
4183N/A void g() {
4183N/A a x = f( new A(), new B() );
4183N/A }
4183N/A}
4183N/A