Skip to content

Commit

Permalink
Rethrow ProcessCanceledException in AsmDfaUtil.analyzeMethod
Browse files Browse the repository at this point in the history
  • Loading branch information
Earthcomputer committed Nov 28, 2023
1 parent 9fa4563 commit 3a6b32f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/kotlin/platform/mixin/util/AsmDfaUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ package com.demonwav.mcdev.platform.mixin.util

import com.demonwav.mcdev.util.internalName
import com.intellij.openapi.diagnostic.thisLogger
import com.intellij.openapi.progress.ProcessCanceledException
import com.intellij.openapi.project.Project
import com.intellij.psi.JavaPsiFacade
import com.intellij.psi.PsiClassType
Expand Down Expand Up @@ -53,6 +54,10 @@ object AsmDfaUtil {
),
).analyze(clazz.name, method)
} catch (e: AnalyzerException) {
val cause = e.cause
if (cause is ProcessCanceledException) {
throw cause
}
LOGGER.warn("AsmDfaUtil.analyzeMethod failed", e)
null
}
Expand Down

0 comments on commit 3a6b32f

Please sign in to comment.