You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
this is very similar to #164 and started happening after the 2021-01-11 update.
For the given input:
class JavaImpl implements MyInterface {
public int getX() {
return 1;
}
public int getY() {
return 1;
}
public void setY(int value) {
}
}
interface MyInterface {
val x:Int
var y:Int
}
calling findOverridee on setY of JavaImpl throws the following exception:
Caused by: java.lang.IllegalStateException: unexpected psi: class org.jetbrains.kotlin.psi.KtProperty
at com.google.devtools.ksp.symbol.impl.UtilsKt.toKSFunctionDeclaration(utils.kt:267)
at com.google.devtools.ksp.symbol.impl.java.KSFunctionDeclarationJavaImpl.findOverridee(KSFunctionDeclarationJavaImpl.kt:52)
at androidx.room.compiler.processing.ksp.ResolverExtKt.overrides(ResolverExt.kt:82)
at androidx.room.compiler.processing.ksp.ResolverExtKt.overrides(ResolverExt.kt:73)
The text was updated successfully, but these errors were encountered:
This CL updates KSP to 20210111.
* Removed the fake checker impl since we don't need that anymore. KSP
skips fakes now.
* Re-enabled tests for java enums since that issue is fixed.
* Removed safeGetJvmName for properties because #200 is fixed.
Unfortunately, there is another bug for methods so we are still using
safeGet for them.
google/ksp#240
* Removed workaround in findOverridee but unfortunately, now we hit
another bug there: google/ksp#248
Bug: 160322705
Test: existing tests
Change-Id: Iddabe0a828821a13a20b8b23c7f9ad340893429b
this is very similar to #164 and started happening after the 2021-01-11 update.
For the given input:
calling
findOverridee
onsetY
ofJavaImpl
throws the following exception:The text was updated successfully, but these errors were encountered: