We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ecfbb65 commit 37e2314Copy full SHA for 37e2314
java/kotlin-extractor/src/main/kotlin/utils/ClassNames.kt
@@ -90,7 +90,11 @@ fun getIrClassVirtualFile(irClass: IrClass): VirtualFile? {
90
}
91
92
is VirtualFileBasedSourceElement -> {
93
- return cSource.virtualFile
+ if (cSource.virtualFile.name.endsWith(".class")) {
94
+ // At least lately, despite VirtualFileBasedSourceElement being constructed on a BinaryJavaClass,
95
+ // this can be a .java source file.
96
+ return cSource.virtualFile
97
+ }
98
99
is KotlinJvmBinarySourceElement -> {
100
val binaryClass = cSource.binaryClass
0 commit comments