TestBridgeWithDefault.java revision 3170:dc017a37aac5
1333347Speter/* 2333347Speter * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 3333347Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4333347Speter * 5333347Speter * This code is free software; you can redistribute it and/or modify it 6333347Speter * under the terms of the GNU General Public License version 2 only, as 7333347Speter * published by the Free Software Foundation. 8333347Speter * 9333347Speter * This code is distributed in the hope that it will be useful, but WITHOUT 10333347Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11333347Speter * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12333347Speter * version 2 for more details (a copy is included in the LICENSE file that 13333347Speter * accompanied this code). 14333347Speter * 15333347Speter * You should have received a copy of the GNU General Public License version 16333347Speter * 2 along with this work; if not, write to the Free Software Foundation, 17333347Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18333347Speter * 19333347Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20333347Speter * or visit www.oracle.com if you need additional information or have any 21333347Speter * questions. 22333347Speter */ 23333347Speter 24333347Speterclass TestBridgeWithDefault { 25333347Speter interface A { Object m(int x); } 26333347Speter 27333347Speter @Bridge("m(I)Ljava/lang/Object;") 28333347Speter interface B extends A { 29333347Speter String m(int x); 30333347Speter default Integer m(long x) { return null; } 31333347Speter } 32333347Speter} 33333347Speter