Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 118689 Details for
Bug 99986
[compiler] Exception signature mismatch with multiply-inherited methods
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Testcase
patch.txt (text/plain), 4.61 KB, created by
Kent Johnson
on 2008-11-25 14:53:33 EST
(
hide
)
Description:
Testcase
Filename:
MIME Type:
Creator:
Kent Johnson
Created:
2008-11-25 14:53:33 EST
Size:
4.61 KB
patch
obsolete
>### 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;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 99986
: 118689