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 23597 Details for
Bug 94759
[1.5][compiler] @Override doesn't report an error inside interface when specified for clone() method
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Patch for AnnotationTest
94759-tests-compiler.txt (text/plain), 1.50 KB, created by
Philipe Mulet
on 2005-06-21 04:28:02 EDT
(
hide
)
Description:
Patch for AnnotationTest
Filename:
MIME Type:
Creator:
Philipe Mulet
Created:
2005-06-21 04:28:02 EDT
Size:
1.50 KB
patch
obsolete
>Index: AnnotationTest.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/compiler/regression/AnnotationTest.java,v >retrieving revision 1.108 >diff -u -r1.108 AnnotationTest.java >--- AnnotationTest.java 13 Jun 2005 13:55:56 -0000 1.108 >+++ AnnotationTest.java 21 Jun 2005 08:27:12 -0000 >@@ -3892,7 +3892,6 @@ > "X.java", > "public interface X {\n" + > " Zork z;\n" + >- " @Override\n" + > " X clone();\n" + > "}\n", > }, >@@ -5393,4 +5392,30 @@ > "Return type for the method is missing\n" + > "----------\n"); > } >+ //https://bugs.eclipse.org/bugs/show_bug.cgi?id=94759 >+ public void test168() { >+ this.runNegativeTest( >+ new String[] { >+ "X.java", >+ "interface I {\n" + >+ " @Override I clone();\n" + >+ " void foo();\n" + >+ "}\n" + >+ "\n" + >+ "interface J extends I {\n" + >+ " @Override void foo();\n" + >+ "}\n", >+ }, >+ "----------\n" + >+ "1. ERROR in X.java (at line 2)\n" + >+ " @Override I clone();\n" + >+ " ^^^^^^^\n" + >+ "The method clone() of type I must override a superclass method\n" + >+ "----------\n" + >+ "2. ERROR in X.java (at line 7)\n" + >+ " @Override void foo();\n" + >+ " ^^^^^\n" + >+ "The method foo() of type J must override a superclass method\n" + >+ "----------\n"); >+ } > }
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 94759
:
23596
| 23597