remove try/finally which leads to masking of exceptions occurring during generation of stub class [r=max]

This commit is contained in:
Dmitry Jemerov
2012-05-24 17:34:30 +02:00
parent 6b3864a12d
commit fb5fd47591
@@ -194,16 +194,12 @@ public class JetLightClass extends AbstractLightClass implements JetJavaMirrorMa
fakeFile.setPhysical(false); fakeFile.setPhysical(false);
answer.setPsi(fakeFile); answer.setPsi(fakeFile);
try {
super.generateNamespace(namespace); super.generateNamespace(namespace);
}
finally {
final StubElement pop = stubStack.pop(); final StubElement pop = stubStack.pop();
if (pop != answer) { if (pop != answer) {
LOG.error("Unbalanced stack operations: " + pop); LOG.error("Unbalanced stack operations: " + pop);
} }
} }
}
}; };