D.java revision 553:9d9f26857129
150276Speter/* 297049Speter * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 350276Speter * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 450276Speter * 550276Speter * This code is free software; you can redistribute it and/or modify it 650276Speter * under the terms of the GNU General Public License version 2 only, as 750276Speter * published by the Free Software Foundation. 850276Speter * 950276Speter * This code is distributed in the hope that it will be useful, but WITHOUT 1050276Speter * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 1150276Speter * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 1250276Speter * version 2 for more details (a copy is included in the LICENSE file that 1350276Speter * accompanied this code). 1450276Speter * 1550276Speter * You should have received a copy of the GNU General Public License version 1650276Speter * 2 along with this work; if not, write to the Free Software Foundation, 1750276Speter * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 1850276Speter * 1950276Speter * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2050276Speter * or visit www.oracle.com if you need additional information or have any 2150276Speter * questions. 2250276Speter */ 2350276Speter 2450276Speter/* 2550276Speter * @test 2650276Speter * @bug 4821489 2750276Speter * @summary generics: missing bridge method 2850276Speter * @author gafter 2950276Speter * 3050276Speter * @compile A.java C.java D.java E.java 3150276Speter * @run main D 3250276Speter */ 3350276Speter 3450276Speter// the main class 3550276Speterimport java.io.*; 3650276Speter 3750276Speterpublic class D extends C { 3850276Speter public D() { 3950276Speter super(); 4050276Speter } 4150276Speter 4250276Speter public D test() { 4397049Speter System.out.println("D called"); 4450276Speter return new D(); 4576726Speter } 4676726Speter 4750276Speter public static void main(String[] agrs) { 4876726Speter A obj = new D(); 4950276Speter obj.test(); 5076726Speter } 5176726Speter} 5250276Speter