Lines 3451-3454
Link Here
|
3451 |
"Unhandled exception type IOException\n" + |
3451 |
"Unhandled exception type IOException\n" + |
3452 |
"----------\n"); |
3452 |
"----------\n"); |
3453 |
} |
3453 |
} |
|
|
3454 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=79798 |
3455 |
public void test107() { |
3456 |
this.runNegativeTest( |
3457 |
new String[] { |
3458 |
"X.java", |
3459 |
"public class X {\n" + |
3460 |
" public static void main(String[] args) {\n" + |
3461 |
" C c = new D();\n" + |
3462 |
" c.xyz();\n" + |
3463 |
" }\n" + |
3464 |
"}\n" + |
3465 |
"class AException extends Exception { }\n" + |
3466 |
"class BException extends Exception { }\n" + |
3467 |
"interface A { void xyz() throws AException; }\n" + |
3468 |
"interface B { void xyz() throws BException; }\n" + |
3469 |
"interface C extends A, B { }\n" + |
3470 |
"class D implements C {\n" + |
3471 |
" public void xyz() { System.out.println(1); }\n" + |
3472 |
"}" |
3473 |
}, |
3474 |
"----------\n" + |
3475 |
"1. ERROR in X.java (at line 4)\n" + |
3476 |
" c.xyz();\n" + |
3477 |
" ^^^^^^^\n" + |
3478 |
"Unhandled exception type AException\n" + |
3479 |
"----------\n" + |
3480 |
"2. WARNING in X.java (at line 7)\n" + |
3481 |
" class AException extends Exception { }\n" + |
3482 |
" ^^^^^^^^^^\n" + |
3483 |
"The serializable class AException does not declare a static final serialVersionUID field of type long\n" + |
3484 |
"----------\n" + |
3485 |
"3. WARNING in X.java (at line 8)\n" + |
3486 |
" class BException extends Exception { }\n" + |
3487 |
" ^^^^^^^^^^\n" + |
3488 |
"The serializable class BException does not declare a static final serialVersionUID field of type long\n" + |
3489 |
"----------\n"); |
3490 |
} |
3454 |
} |
3491 |
} |