[313608] random build/compile error due to out of sync files
diff --git a/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html b/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html
index 83e963e..80f385c 100644
--- a/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html
+++ b/features/org.eclipse.wst.common_core.feature.patch/buildnotes_org.eclipse.wst.common_core.feature.patch.html
@@ -38,6 +38,7 @@
 <p>Bug <a href='https://bugs.eclipse.org/307512'>307512</a>. [Backport] NPE when deleting several projects</p>
 <p>Bug <a href='https://bugs.eclipse.org/308326'>308326</a>. Validation Framework invokes the V1 validators too often</p>
 <p>Bug <a href='https://bugs.eclipse.org/313209'>313209</a>. NPE in org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.findMember(VirtualContainer.java:80)</p>
+<p>Bug <a href='https://bugs.eclipse.org/313608'>313608</a>. random build/compile error due to out of sync files</p>
 
 </body>
 </html>
\ No newline at end of file
diff --git a/features/org.eclipse.wst.common_core.feature.patch/feature.properties b/features/org.eclipse.wst.common_core.feature.patch/feature.properties
index 9efe87c..cc6ae46 100644
--- a/features/org.eclipse.wst.common_core.feature.patch/feature.properties
+++ b/features/org.eclipse.wst.common_core.feature.patch/feature.properties
@@ -52,6 +52,7 @@
 Bug https://bugs.eclipse.org/307512 [Backport] NPE when deleting several projects\n\
 Bug https://bugs.eclipse.org/308326 Validation Framework invokes the V1 validators too often\n\
 Bug https://bugs.eclipse.org/313209 NPE in org.eclipse.wst.common.componentcore.internal.resources.VirtualContainer.findMember(VirtualContainer.java:80)\n\
+Bug https://bugs.eclipse.org/313608 random build/compile error due to out of sync files\n\
 \n\
 # "copyright" property - text of the "Feature Update Copyright"
 copyright=\
diff --git a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java
index 3037626..1d7136b 100644
--- a/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java
+++ b/plugins/org.eclipse.wst.common.modulecore/modulecore-src/org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java
@@ -289,7 +289,7 @@
 					try {
 						// OK wait to get workspace root before refreshing
 						Job.getJobManager().beginRule(root, null);
-						compFile.refreshLocal(IResource.DEPTH_ONE, null);
+						compFile.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
 					} catch (CoreException ce) {
 						// ignore
 					} finally {