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