test/tools/javadoc/6176978/X.java

Tue, 16 Jun 2009 10:46:16 +0100

author
mcimadamore
date
Tue, 16 Jun 2009 10:46:16 +0100
changeset 298
3ac205ad1f05
parent 229
03bcd66bd8e7
child 554
9d9f26857129
permissions
-rw-r--r--

6835428: regression: return-type inference rejects valid code
Summary: Redundant subtyping test during type-inference ends up in rejecting legal code
Reviewed-by: jjg

jjg@209 1 /*
xdono@229 2 * Copyright 2008-2009 Sun Microsystems, Inc. All Rights Reserved.
jjg@209 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jjg@209 4 *
jjg@209 5 * This code is free software; you can redistribute it and/or modify it
jjg@209 6 * under the terms of the GNU General Public License version 2 only, as
jjg@209 7 * published by the Free Software Foundation.
jjg@209 8 *
jjg@209 9 * This code is distributed in the hope that it will be useful, but WITHOUT
jjg@209 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jjg@209 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
jjg@209 12 * version 2 for more details (a copy is included in the LICENSE file that
jjg@209 13 * accompanied this code).
jjg@209 14 *
jjg@209 15 * You should have received a copy of the GNU General Public License version
jjg@209 16 * 2 along with this work; if not, write to the Free Software Foundation,
jjg@209 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jjg@209 18 *
jjg@209 19 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
jjg@209 20 * CA 95054 USA or visit www.sun.com if you need additional information or
jjg@209 21 * have any questions.
jjg@209 22 */
jjg@209 23
jjg@209 24 import com.sun.javadoc.*;
jjg@209 25
jjg@209 26 public class X {
jjg@209 27 public static boolean start(RootDoc root) {
jjg@209 28 System.out.println("X.start");
jjg@209 29 return true;
jjg@209 30 }
jjg@209 31 }

mercurial