Fix potential AbstractMethodError on KotlinJvmBinaryClass.getContainingLibrary()

Compiler supposed to generate such method inside the
LocalFileKotlinClass class, but because of the KT-18489 method
getContainingLibrary is not generated. Because of that we potentially
could get AbstractMethodError. In order to fix that we are adding
explicit ovverride in java super class
This commit is contained in:
Stanislav Erokhin
2021-12-20 14:41:22 +01:00
committed by teamcity
parent 352fa7540c
commit 249dc1e1d2
@@ -355,4 +355,11 @@ public abstract class FileBasedKotlinClass implements KotlinJvmBinaryClass {
@Override
public abstract String toString();
// Declared explicitly to workaround KT-18489
@Nullable
@Override
public String getContainingLibrary() {
return KotlinJvmBinaryClass.DefaultImpls.getContainingLibrary(this);
}
}