fail early if found class is different from requested

This commit is contained in:
Stepan Koltsov
2012-04-19 14:05:37 +04:00
parent 77dad4fbfb
commit c2adadaf39
@@ -87,7 +87,7 @@ public class PsiClassFinderForJvm implements PsiClassFinder {
if (result != null) {
FqName actualQualifiedName = new FqName(result.getQualifiedName());
if (!actualQualifiedName.equals(qualifiedName)) {
// throw new IllegalStateException("requested " + qualifiedName + ", got " + actualQualifiedName);
throw new IllegalStateException("requested " + qualifiedName + ", got " + actualQualifiedName);
}
}