912N/A/*
912N/A * Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
912N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
912N/A *
912N/A * This code is free software; you can redistribute it and/or modify it
912N/A * under the terms of the GNU General Public License version 2 only, as
912N/A * published by the Free Software Foundation.
912N/A *
912N/A * This code is distributed in the hope that it will be useful, but WITHOUT
912N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
912N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
912N/A * version 2 for more details (a copy is included in the LICENSE file that
912N/A * accompanied this code).
912N/A *
912N/A * You should have received a copy of the GNU General Public License version
912N/A * 2 along with this work; if not, write to the Free Software Foundation,
912N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
912N/A *
912N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
912N/A * or visit www.oracle.com if you need additional information or have any
912N/A * questions.
912N/A */
912N/A
912N/A/* @test
912N/A * @bug 7024568
912N/A * @summary Very long method resolution causing OOM error
912N/A * @compile/fail/ref=T7024568.out -XDrawDiagnostics T7024568.java
912N/A */
912N/A
912N/Aclass Main {
912N/A void test(Obj o) {
912N/A o.test(0, 0, 0, 0, 0, 0, 0, 0, undefined);
912N/A }
912N/A}
912N/A
912N/Ainterface Test {
912N/A public void test(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, String str);
912N/A public void test(int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, long l);
912N/A}
912N/A
912N/Ainterface Obj extends Test, A, B, C, D, E {}
912N/Ainterface A extends Test {}
912N/Ainterface B extends A, Test {}
912N/Ainterface C extends A, B, Test {}
912N/Ainterface D extends A, B, C, Test {}
912N/Ainterface E extends A, B, C, D, Test {}