KT-1223 Code completion for imported from jars extension functions - don't mute ProcessCanceledException in hack

This commit is contained in:
Nikolay Krasko
2012-02-10 14:10:52 +04:00
parent b33c6ab9ea
commit f1a2866f0c
@@ -2,6 +2,7 @@ package org.jetbrains.jet.lang.resolve.java;
import com.google.common.collect.Sets;
import com.intellij.openapi.diagnostic.Logger;
import com.intellij.openapi.progress.ProcessCanceledException;
import com.intellij.psi.PsiClass;
import com.intellij.psi.PsiMethod;
import com.intellij.psi.PsiModifier;
@@ -112,6 +113,8 @@ public class JavaPackageScope extends JavaClassOrPackageScope {
for (String methodName : methodNames) {
try {
allDescriptors.addAll(getFunctions(methodName));
} catch (ProcessCanceledException cancelException) {
throw cancelException;
} catch (RuntimeException ex) {
LOG.error(ex);
}