summaryrefslogtreecommitdiff
path: root/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting6/IDEADEV11877.java
diff options
context:
space:
mode:
Diffstat (limited to 'java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting6/IDEADEV11877.java')
-rw-r--r--java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting6/IDEADEV11877.java19
1 files changed, 19 insertions, 0 deletions
diff --git a/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting6/IDEADEV11877.java b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting6/IDEADEV11877.java
new file mode 100644
index 000000000000..39773bd7e428
--- /dev/null
+++ b/java/java-tests/testData/codeInsight/daemonCodeAnalyzer/advHighlighting6/IDEADEV11877.java
@@ -0,0 +1,19 @@
+interface MyCloneable {
+
+ //protected method from java.lang.Object is not implicitly declared in interface with no base interfaces
+ int clone();
+
+ <error descr="'toString()' in 'MyCloneable' clashes with 'toString()' in 'java.lang.Object'; attempting to use incompatible return type">int</error> toString();
+}
+
+interface MyCloneable1 {
+ <error descr="Method does not override method from its superclass">@Override</error>
+ Object clone();
+}
+
+class MyCloneable2 {
+ @Override
+ public Object clone() {
+ return null;
+ }
+} \ No newline at end of file