mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-09 20:42:52 +07:00
static override: search method in superclass by method signature from derived (IDEA-93043)
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
import java.util.*;
|
||||
|
||||
public class MyClass implements Comparator<String> {
|
||||
|
||||
<error descr="Static method 'compare(String, String)' in 'MyClass' cannot override instance method 'compare(T, T)' in 'java.util.Comparator'">public static int compare(String a, String b)</error> {
|
||||
return 42;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user