This commit is contained in:
Alexey Kudravtsev
2010-03-25 13:29:32 +03:00
parent dcd1cc9824
commit 9f3fe502bb
@@ -273,7 +273,7 @@ public class PsiJavaParserFacadeImpl extends PsiParserFacadeImpl implements PsiJ
String catchSectionText = buffer.toString();
final FileElement holderElement = DummyHolderFactory.createHolder(myManager, context).getTreeElement();
TreeElement catchSection = getJavaParsingContext(holderElement).getStatementParsing().parseCatchSectionText(catchSectionText);
LOG.assertTrue(catchSection != null && catchSection.getElementType() == JavaElementType.CATCH_SECTION);
LOG.assertTrue(catchSection != null && catchSection.getElementType() == JavaElementType.CATCH_SECTION, catchSectionText);
holderElement.rawAddChildren(catchSection);
PsiCatchSection psiCatchSection = (PsiCatchSection)SourceTreeToPsiMap.treeElementToPsi(catchSection);