jjg@46: /* jjg@46: * Copyright 2008 Sun Microsystems, Inc. All Rights Reserved. jjg@46: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. jjg@46: * jjg@46: * This code is free software; you can redistribute it and/or modify it jjg@46: * under the terms of the GNU General Public License version 2 only, as jjg@46: * published by the Free Software Foundation. jjg@46: * jjg@46: * This code is distributed in the hope that it will be useful, but WITHOUT jjg@46: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or jjg@46: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License jjg@46: * version 2 for more details (a copy is included in the LICENSE file that jjg@46: * accompanied this code). jjg@46: * jjg@46: * You should have received a copy of the GNU General Public License version jjg@46: * 2 along with this work; if not, write to the Free Software Foundation, jjg@46: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. jjg@46: * jjg@46: * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, jjg@46: * CA 95054 USA or visit www.sun.com if you need additional information or jjg@46: * have any questions. jjg@46: */ jjg@46: jjg@46: import java.util.*; jjg@46: jjg@46: abstract class Test,U extends Comparable> { jjg@46: T t; jjg@46: jjg@46: Test(T t) { } jjg@46: Test(G g, int i) { } jjg@46: jjg@46: Test(String... args) { } jjg@46: Test(int i, Object[]... args) { } jjg@46: abstract void v1(String... args); jjg@46: abstract void v2(int i, String[]... args); jjg@46: jjg@46: abstract void a1(int x); jjg@46: abstract void a2(int[] x); jjg@46: abstract void a3(T x); jjg@46: abstract void a4(T[] x); jjg@46: jjg@46: abstract int r1(); jjg@46: abstract int[] r2(); jjg@46: abstract T r3(); jjg@46: abstract T[] r4(); jjg@46: jjg@46: abstract void ga1(int x); jjg@46: abstract void ga2(int[] x); jjg@46: abstract void ga3(G x); jjg@46: abstract void ga4(G[] x); jjg@46: jjg@46: abstract int gr1(); jjg@46: abstract int[] gr2(); jjg@46: abstract G gr3(); jjg@46: abstract G[] gr4(); jjg@46: jjg@46: abstract void ge() throws G; jjg@46: jjg@46: abstract void w(List l); jjg@46: abstract void we(List l); jjg@46: abstract void ws(List l); jjg@46: jjg@46: abstract void t1() throws Error; jjg@46: abstract void t2() throws E; jjg@46: abstract void t3() throws E,Error; jjg@46: jjg@46: abstract void i1(Test x); jjg@46: abstract void i3(Test.Inner x); jjg@46: jjg@46: class Inner { } jjg@46: class Inner2 extends Inner { } jjg@46: jjg@46: class Simple { } jjg@46: jjg@46: enum Enum { e1, e2, e3 } jjg@46: }