Skip to content

Commit

Permalink
Do not swallow PCE
Browse files Browse the repository at this point in the history
#KT-39776 Fixed

(cherry picked from commit b8d1bbd)
  • Loading branch information
vladimirdolzhenko committed Feb 22, 2021
1 parent fbe977a commit 929b6dd
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
package org.jetbrains.kotlin.load.kotlin

import com.intellij.ide.highlighter.JavaClassFileType
import com.intellij.openapi.diagnostic.ControlFlowException
import com.intellij.openapi.diagnostic.Logger
import com.intellij.openapi.progress.ProcessCanceledException
import com.intellij.openapi.vfs.VirtualFile
import org.jetbrains.kotlin.load.kotlin.KotlinClassFinder.Result.KotlinClass
import org.jetbrains.kotlin.load.kotlin.header.KotlinClassHeader
Expand Down Expand Up @@ -73,9 +73,10 @@ class VirtualFileKotlinClass private constructor(
}
} catch (e: FileNotFoundException) {
// Valid situation. User can delete jar file.
} catch (e: ProcessCanceledException) {
// Valid situation.
} catch (e: Throwable) {
if (e is ControlFlowException) {
throw e
}
LOG.warn(renderFileReadingErrorMessage(file), e)
}
null
Expand Down

0 comments on commit 929b6dd

Please sign in to comment.