TestNoBridgeInSiblingsSuper.java revision 3170:dc017a37aac5
1229997Sken/*
2229997Sken * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
3288811Smav * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4229997Sken *
5229997Sken * This code is free software; you can redistribute it and/or modify it
6229997Sken * under the terms of the GNU General Public License version 2 only, as
7229997Sken * published by the Free Software Foundation.
8229997Sken *
9229997Sken * This code is distributed in the hope that it will be useful, but WITHOUT
10229997Sken * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11229997Sken * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
12229997Sken * version 2 for more details (a copy is included in the LICENSE file that
13229997Sken * accompanied this code).
14229997Sken *
15229997Sken * You should have received a copy of the GNU General Public License version
16229997Sken * 2 along with this work; if not, write to the Free Software Foundation,
17229997Sken * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18229997Sken *
19229997Sken * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20229997Sken * or visit www.oracle.com if you need additional information or have any
21229997Sken * questions.
22229997Sken */
23229997Sken
24229997Skenclass TestNoBridgeInSiblingSuper {
25229997Sken    interface A { Object m(); }
26229997Sken    interface B { String m(); }
27229997Sken    //no bridge here!
28229997Sken    interface C extends A, B { }
29229997Sken
30229997Sken    @Bridge("m()Ljava/lang/Object;")
31229997Sken    interface D extends C {
32229997Sken        String m();
33229997Sken    }
34229997Sken}
35229997Sken
36229997Sken