fix more errors of incomplete classpath
after this commit project without JDK configured is not all red
This commit is contained in:
+1
-1
@@ -893,7 +893,7 @@ public class JavaDescriptorResolver implements DependencyClassByQualifiedNameRes
|
|||||||
if (resolved != null && resolved.getQualifiedName().equals(JvmStdlibNames.JET_OBJECT.getFqName().getFqName())) {
|
if (resolved != null && resolved.getQualifiedName().equals(JvmStdlibNames.JET_OBJECT.getFqName().getFqName())) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (annotation && resolved.getQualifiedName().equals("java.lang.annotation.Annotation")) {
|
if (resolved != null && annotation && resolved.getQualifiedName().equals("java.lang.annotation.Annotation")) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -441,6 +441,10 @@ public class OverrideResolver {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void checkOverridesForParameters(CallableMemberDescriptor declared) {
|
private void checkOverridesForParameters(CallableMemberDescriptor declared) {
|
||||||
|
if (ErrorUtils.isError(declared)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
boolean fakeOverride = declared.getKind() == CallableMemberDescriptor.Kind.FAKE_OVERRIDE;
|
boolean fakeOverride = declared.getKind() == CallableMemberDescriptor.Kind.FAKE_OVERRIDE;
|
||||||
if (!fakeOverride) {
|
if (!fakeOverride) {
|
||||||
// No check if the function is not marked as 'override'
|
// No check if the function is not marked as 'override'
|
||||||
|
|||||||
Reference in New Issue
Block a user