Neal M Gafter - 2002-09-09

Logged In: YES
user_id=608545

Also this one:

/*
* @test @(#)ThrowsIntersection_1.java 1.2 00/10/12
* @bug 4042259
* @summary Check that a class can inherit multiple methods
with conflicting throws clauses.
* @author maddox
*
* @compile ThrowsIntersection_1.java
*/

class Ex1 extends Exception {}
class Ex2 extends Exception {}

interface a {
int m1() throws Ex1;
}

interface b {
int m1() throws Ex2;
}

// Either order should work
abstract class c1 implements a, b {}
abstract class c2 implements b, a {}

class d extends c1 {
public int m1() {
return 1;
}
}

class e extends c2 {
public int m1() {
return 1;
}
}