do not cache binary contents when trying to check if a .class file is compiled with Kotlin
This commit is contained in:
+1
-1
@@ -59,7 +59,7 @@ public class VirtualFileKotlinClass private constructor(
|
||||
assert(file.getFileType() == JavaClassFileType.INSTANCE) { "Trying to read binary data from a non-class file $file" }
|
||||
|
||||
try {
|
||||
val byteContent = file.contentsToByteArray()
|
||||
val byteContent = file.contentsToByteArray(false)
|
||||
if (!byteContent.isEmpty()) {
|
||||
return@time FileBasedKotlinClass.create(byteContent) {
|
||||
name, header, innerClasses ->
|
||||
|
||||
Reference in New Issue
Block a user