6797871: Fix for 6797463 did not remove the jtreg tests, and it should have

Reviewed-by: jjg
This commit is contained in:
Tim Bell 2009-01-26 15:14:46 -08:00
parent 57af527fbb
commit 1b49bea0ad
2 changed files with 0 additions and 46 deletions

View File

@ -1,44 +0,0 @@
/*
* Copyright 2009 Sun Microsystems, Inc. All Rights Reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
* CA 95054 USA or visit www.sun.com if you need additional information or
* have any questions.
*/
/*
* @test
* @bug 6557199
* @summary Fails to reject bad override of generic method
* @author Maurizio Cimadamore
* @compile/fail/ref=T6557199.out T6557199.java -XDrawDiagnostics
*/
class T6557199 {
static class X<S> {
public static <U> X<U> test() {
return null;
}
}
static class B extends X<B> {
public static B test() {
return null;
}
}
}

View File

@ -1,2 +0,0 @@
T6557199.java:40:25: compiler.err.prob.found.req: (- compiler.misc.override.incompatible.ret: (- compiler.misc.cant.override: test(), T6557199.B, <U>test(), T6557199.X)), T6557199.B, T6557199.X<U>
1 error