jlahoda@2553: /* jlahoda@2553: * Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved. jlahoda@2553: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jlahoda@2553: * jlahoda@2553: * This code is free software; you can redistribute it and/or modify it jlahoda@2553: * under the terms of the GNU General Public License version 2 only, as jlahoda@2553: * published by the Free Software Foundation. jlahoda@2553: * jlahoda@2553: * This code is distributed in the hope that it will be useful, but WITHOUT jlahoda@2553: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jlahoda@2553: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jlahoda@2553: * version 2 for more details (a copy is included in the LICENSE file that jlahoda@2553: * accompanied this code). jlahoda@2553: * jlahoda@2553: * You should have received a copy of the GNU General Public License version jlahoda@2553: * 2 along with this work; if not, write to the Free Software Foundation, jlahoda@2553: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jlahoda@2553: * jlahoda@2553: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA jlahoda@2553: * or visit www.oracle.com if you need additional information or have any jlahoda@2553: * questions. jlahoda@2553: */ jlahoda@2553: jlahoda@2553: /** jlahoda@2553: * @test jlahoda@2553: * @bug 8033421 jlahoda@2553: * @summary Check that \\@SuppressWarnings works properly when overriding deprecated method. jlahoda@2553: * @compile -Werror -Xlint:deprecation OverriddenSuppressed.java jlahoda@2553: */ jlahoda@2553: jlahoda@2553: public class OverriddenSuppressed implements Interface { jlahoda@2553: @SuppressWarnings("deprecation") jlahoda@2553: public void test() { } jlahoda@2553: } jlahoda@2553: jlahoda@2553: interface Interface { jlahoda@2553: @Deprecated void test(); jlahoda@2553: }