Remove JavaClass.getAllMethods()/getAllFields()
Their behavior is different in PSI and reflection (two things that this interface is supposed to unify), so there's no point in making it interface methods, rather we should just walk supertype hierarchy manually Also make JavaClassImpl.getSupertypes() invoke PsiClass.getSuperTypes(), because it also contains java.lang.Object for interfaces, which makes equals/hashCode/toString appear in interfaces' getAllMethods() as well
This commit is contained in:
@@ -1789,6 +1789,12 @@ public class LoadJavaTestGenerated extends AbstractLoadJavaTest {
|
||||
doTestCompiledJavaIncludeObjectMethods(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("EmptyInterface.java")
|
||||
public void testEmptyInterface() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJavaIncludeObjectMethods/EmptyInterface.java");
|
||||
doTestCompiledJavaIncludeObjectMethods(fileName);
|
||||
}
|
||||
|
||||
@TestMetadata("InterfaceWithObjectMethods.java")
|
||||
public void testInterfaceWithObjectMethods() throws Exception {
|
||||
String fileName = JetTestUtils.navigationMetadata("compiler/testData/loadJava/compiledJavaIncludeObjectMethods/InterfaceWithObjectMethods.java");
|
||||
|
||||
Reference in New Issue
Block a user