check state in WriteableScopeImpl
(nothing is written to allDescriptor after getAllDescriptors fetched)
This commit is contained in:
@@ -131,6 +131,10 @@ public class WritableScopeImpl extends WritableScopeWithImports {
|
|||||||
|
|
||||||
if (!allDescriptorsDone) {
|
if (!allDescriptorsDone) {
|
||||||
allDescriptorsDone = true;
|
allDescriptorsDone = true;
|
||||||
|
|
||||||
|
// make sure no descriptors added to allDescriptors collection
|
||||||
|
changeLockLevel(LockLevel.READING);
|
||||||
|
|
||||||
allDescriptors.addAll(getWorkerScope().getAllDescriptors());
|
allDescriptors.addAll(getWorkerScope().getAllDescriptors());
|
||||||
for (JetScope imported : getImports()) {
|
for (JetScope imported : getImports()) {
|
||||||
allDescriptors.addAll(imported.getAllDescriptors());
|
allDescriptors.addAll(imported.getAllDescriptors());
|
||||||
|
|||||||
Reference in New Issue
Block a user