mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix non-atomic stubs update (EA-108953 - assert: PsiFileImpl.updateTrees)
This commit is contained in:
@@ -287,7 +287,9 @@ public abstract class PsiFileImpl extends ElementBase implements PsiFileEx, PsiF
|
||||
|
||||
void reportStubAstMismatch(String message, StubTree stubTree) {
|
||||
rebuildStub();
|
||||
updateTrees(myTrees.clearStub(STUB_PSI_MISMATCH));
|
||||
synchronized (myPsiLock) {
|
||||
updateTrees(myTrees.clearStub(STUB_PSI_MISMATCH));
|
||||
}
|
||||
|
||||
throw StubTreeLoader.getInstance().stubTreeAndIndexDoNotMatch(message, stubTree, this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user