# HG changeset patch # User tbell # Date 1233011686 28800 # Node ID eb9f15dfd19ebc2ed454c3bb814a29ab8efd1301 # Parent 6306c60724ee74aed4c99c3010ad67fc1f00a853 6797871: Fix for 6797463 did not remove the jtreg tests, and it should have Reviewed-by: jjg diff -r 6306c60724ee -r eb9f15dfd19e langtools/test/tools/javac/generics/rawOverride/6557199/T6557199.java --- a/langtools/test/tools/javac/generics/rawOverride/6557199/T6557199.java Sat Jan 24 16:35:52 2009 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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 { - public static X test() { - return null; - } - } - - static class B extends X { - public static B test() { - return null; - } - } -} diff -r 6306c60724ee -r eb9f15dfd19e langtools/test/tools/javac/generics/rawOverride/6557199/T6557199.out --- a/langtools/test/tools/javac/generics/rawOverride/6557199/T6557199.out Sat Jan 24 16:35:52 2009 -0800 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -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, test(), T6557199.X)), T6557199.B, T6557199.X -1 error