do not cache binary contents when trying to check if a .class file is compiled with Kotlin

This commit is contained in:
Dmitry Jemerov
2015-09-22 14:13:31 +02:00
parent 98867addc9
commit 51ee1b3e5a
@@ -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 ->