Lines 31465-31486
Link Here
|
31465 |
}, |
31465 |
}, |
31466 |
"S100MyClass = [Terry]MyClass = [Corbet]SUCCESS"); |
31466 |
"S100MyClass = [Terry]MyClass = [Corbet]SUCCESS"); |
31467 |
} |
31467 |
} |
31468 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=140643 |
31468 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=140643 |
31469 |
public void test0987() { |
31469 |
public void test0987() { |
31470 |
String expectedOutput = new CompilerOptions(getCompilerOptions()).sourceLevel < ClassFileConstants.JDK1_6 |
31470 |
String expectedOutput = new CompilerOptions(getCompilerOptions()).sourceLevel < ClassFileConstants.JDK1_6 |
31471 |
? "----------\n" + |
31471 |
? "----------\n" + |
31472 |
"1. ERROR in X.java (at line 11)\n" + |
31472 |
"1. ERROR in X.java (at line 7)\n" + |
|
|
31473 |
" abstract class GLinkElementView<M,CM> extends AbstractLinkView<M> {}\n" + |
31474 |
" ^^^^^^^^^^^^^^^^\n" + |
31475 |
"The return type is incompatible with EditPart.getViewer(), AbstractLinkView<M>.getViewer()\n" + |
31476 |
"----------\n" + |
31477 |
"2. ERROR in X.java (at line 11)\n" + |
31473 |
" public ISheetViewer getViewer() { return null; } \n" + |
31478 |
" public ISheetViewer getViewer() { return null; } \n" + |
31474 |
" ^^^^^^^^^^^^\n" + |
31479 |
" ^^^^^^^^^^^^\n" + |
31475 |
"The return type is incompatible with EditPart.getViewer()\n" + |
31480 |
"The return type is incompatible with EditPart.getViewer()\n" + |
31476 |
"----------\n" + |
31481 |
"----------\n" + |
31477 |
"2. ERROR in X.java (at line 11)\n" + |
31482 |
"3. ERROR in X.java (at line 11)\n" + |
31478 |
" public ISheetViewer getViewer() { return null; } \n" + |
31483 |
" public ISheetViewer getViewer() { return null; } \n" + |
31479 |
" ^^^^^^^^^^^\n" + |
31484 |
" ^^^^^^^^^^^\n" + |
31480 |
"The method getViewer() of type AbstractLinkView<M> must override a superclass method\n" + |
31485 |
"The method getViewer() of type AbstractLinkView<M> must override a superclass method\n" + |
31481 |
"----------\n" |
31486 |
"----------\n" |
31482 |
: "----------\n" + |
31487 |
: "----------\n" + |
31483 |
"1. ERROR in X.java (at line 11)\n" + |
31488 |
"1. ERROR in X.java (at line 7)\n" + |
|
|
31489 |
" abstract class GLinkElementView<M,CM> extends AbstractLinkView<M> {}\n" + |
31490 |
" ^^^^^^^^^^^^^^^^\n" + |
31491 |
"The return type is incompatible with EditPart.getViewer(), AbstractLinkView<M>.getViewer()\n" + |
31492 |
"----------\n" + |
31493 |
"2. ERROR in X.java (at line 11)\n" + |
31484 |
" public ISheetViewer getViewer() { return null; } \n" + |
31494 |
" public ISheetViewer getViewer() { return null; } \n" + |
31485 |
" ^^^^^^^^^^^^\n" + |
31495 |
" ^^^^^^^^^^^^\n" + |
31486 |
"The return type is incompatible with EditPart.getViewer()\n" + |
31496 |
"The return type is incompatible with EditPart.getViewer()\n" + |
Lines 31521-31527
Link Here
|
31521 |
}, |
31531 |
}, |
31522 |
expectedOutput); |
31532 |
expectedOutput); |
31523 |
} |
31533 |
} |
31524 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=140643 - variation |
31534 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=140643 - variation |
31525 |
public void test0988() { |
31535 |
public void test0988() { |
31526 |
this.runNegativeTest( |
31536 |
this.runNegativeTest( |
31527 |
new String[] { |
31537 |
new String[] { |
Lines 31572-31578
Link Here
|
31572 |
"1. ERROR in X.java (at line 7)\n" + |
31582 |
"1. ERROR in X.java (at line 7)\n" + |
31573 |
" abstract class GLinkElementView<M,CM> extends AbstractLinkView<M> {}\n" + |
31583 |
" abstract class GLinkElementView<M,CM> extends AbstractLinkView<M> {}\n" + |
31574 |
" ^^^^^^^^^^^^^^^^\n" + |
31584 |
" ^^^^^^^^^^^^^^^^\n" + |
31575 |
"The return type is incompatible with AbstractEditPart.getViewer(), AbstractLinkView<M>.getViewer()\n" + |
31585 |
"The return type is incompatible with ILinkViewElement.getViewer(), AbstractEditPart.getViewer(), AbstractLinkView<M>.getViewer()\n" + |
31576 |
"----------\n" + |
31586 |
"----------\n" + |
31577 |
"2. ERROR in X.java (at line 11)\n" + |
31587 |
"2. ERROR in X.java (at line 11)\n" + |
31578 |
" public SheetViewer getViewer() { return null; } \n" + |
31588 |
" public SheetViewer getViewer() { return null; } \n" + |