Lines 2436-2441
Link Here
|
2436 |
"----------\n"); |
2436 |
"----------\n"); |
2437 |
} |
2437 |
} |
2438 |
// check @Override annotation - strictly for superclasses (overrides) and not interfaces (implements) |
2438 |
// check @Override annotation - strictly for superclasses (overrides) and not interfaces (implements) |
|
|
2439 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=141931 will change this by |
2440 |
// suppressing the last message (note also that the message label should change). |
2439 |
public void test077() { |
2441 |
public void test077() { |
2440 |
this.runNegativeTest( |
2442 |
this.runNegativeTest( |
2441 |
new String[] { |
2443 |
new String[] { |
Lines 3971-3976
Link Here
|
3971 |
""); |
3973 |
""); |
3972 |
} |
3974 |
} |
3973 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=90484 - check no missing @Override warning |
3975 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=90484 - check no missing @Override warning |
|
|
3976 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=141931 will change this |
3977 |
// since X#clone() is override-compatible with Object#clone. |
3974 |
public void test126() { |
3978 |
public void test126() { |
3975 |
this.runNegativeTest( |
3979 |
this.runNegativeTest( |
3976 |
new String[] { |
3980 |
new String[] { |
Lines 5605-5610
Link Here
|
5605 |
"----------\n"); |
5609 |
"----------\n"); |
5606 |
} |
5610 |
} |
5607 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=94759 |
5611 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=94759 |
|
|
5612 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=141931 |
5613 |
// will probably change this (the new ref impl should |
5614 |
// add @Override capability to interfaces - so no error here) |
5608 |
public void test168() { |
5615 |
public void test168() { |
5609 |
this.runNegativeTest( |
5616 |
this.runNegativeTest( |
5610 |
new String[] { |
5617 |
new String[] { |
Lines 6565-6568
Link Here
|
6565 |
}, |
6572 |
}, |
6566 |
""); |
6573 |
""); |
6567 |
} |
6574 |
} |
|
|
6575 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=141931 |
6576 |
// still have to decide if we mandate the @Override when a class |
6577 |
// implements an interface method; however, the reference impl |
6578 |
// may (as of 20060516) consider tolerating it |
6579 |
public void _test200() { |
6580 |
this.runConformTest( |
6581 |
new String[] { |
6582 |
"I.java", |
6583 |
"public interface I {\n" + |
6584 |
" void foo();\n" + |
6585 |
"}\n", |
6586 |
"X.java", |
6587 |
"class X implements I {\n" + |
6588 |
" @Override\n" + |
6589 |
" public void foo() {}\n" + |
6590 |
"}\n", |
6591 |
}, |
6592 |
""); |
6593 |
} |
6594 |
|
6595 |
|
6568 |
} |
6596 |
} |