### Eclipse Workspace Patch 1.0 #P org.eclipse.jdt.core.tests.compiler Index: src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_3.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_3.java,v retrieving revision 1.102 diff -u -r1.102 Compliance_1_3.java --- src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_3.java 24 Nov 2008 13:14:05 -0000 1.102 +++ src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_3.java 25 Nov 2008 19:51:35 -0000 @@ -3451,4 +3451,41 @@ "Unhandled exception type IOException\n" + "----------\n"); } +//https://bugs.eclipse.org/bugs/show_bug.cgi?id=79798 +public void test107() { + this.runNegativeTest( + new String[] { + "X.java", + "public class X {\n" + + " public static void main(String[] args) {\n" + + " C c = new D();\n" + + " c.xyz();\n" + + " }\n" + + "}\n" + + "class AException extends Exception { }\n" + + "class BException extends Exception { }\n" + + "interface A { void xyz() throws AException; }\n" + + "interface B { void xyz() throws BException; }\n" + + "interface C extends A, B { }\n" + + "class D implements C {\n" + + " public void xyz() { System.out.println(1); }\n" + + "}" + }, + "----------\n" + + "1. ERROR in X.java (at line 4)\n" + + " c.xyz();\n" + + " ^^^^^^^\n" + + "Unhandled exception type AException\n" + + "----------\n" + + "2. WARNING in X.java (at line 7)\n" + + " class AException extends Exception { }\n" + + " ^^^^^^^^^^\n" + + "The serializable class AException does not declare a static final serialVersionUID field of type long\n" + + "----------\n" + + "3. WARNING in X.java (at line 8)\n" + + " class BException extends Exception { }\n" + + " ^^^^^^^^^^\n" + + "The serializable class BException does not declare a static final serialVersionUID field of type long\n" + + "----------\n"); +} } Index: src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java,v retrieving revision 1.103 diff -u -r1.103 Compliance_1_4.java --- src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java 24 Nov 2008 13:14:05 -0000 1.103 +++ src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_4.java 25 Nov 2008 19:51:35 -0000 @@ -3469,4 +3469,26 @@ }, ""); } +//https://bugs.eclipse.org/bugs/show_bug.cgi?id=79798 +public void test107() { + this.runConformTest( + new String[] { + "X.java", + "public class X {\n" + + " public static void main(String[] args) {\n" + + " C c = new D();\n" + + " c.xyz();\n" + + " }\n" + + "}\n" + + "class AException extends Exception { }\n" + + "class BException extends Exception { }\n" + + "interface A { void xyz() throws AException; }\n" + + "interface B { void xyz() throws BException; }\n" + + "interface C extends A, B { }\n" + + "class D implements C {\n" + + " public void xyz() { System.out.println(1); }\n" + + "}" + }, + "1"); +} } Index: src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_5.java =================================================================== RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_5.java,v retrieving revision 1.79 diff -u -r1.79 Compliance_1_5.java --- src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_5.java 24 Nov 2008 13:14:04 -0000 1.79 +++ src/org/eclipse/jdt/core/tests/compiler/regression/Compliance_1_5.java 25 Nov 2008 19:51:36 -0000 @@ -3542,6 +3542,28 @@ }, ""); } +//https://bugs.eclipse.org/bugs/show_bug.cgi?id=99986 +public void test107() { + this.runConformTest( + new String[] { + "X.java", + "public class X {\n" + + " public static void main(String[] args) {\n" + + " C c = new D();\n" + + " c.xyz();\n" + + " }\n" + + "}\n" + + "class AException extends Exception { }\n" + + "class BException extends Exception { }\n" + + "interface A { void xyz() throws AException; }\n" + + "interface B { void xyz() throws BException; }\n" + + "interface C extends A, B { }\n" + + "class D implements C {\n" + + " public void xyz() { System.out.println(1); }\n" + + "}" + }, + "1"); +} public static Class testClass() { return Compliance_1_5.class;