View | Details | Raw Unified | Return to bug 357425 | Differences between
and this patch

Collapse All | Expand All

(-)model/org/eclipse/jdt/internal/core/ClasspathEntry.java (+1 lines)
Lines 1827-1832 Link Here
1827
	 * @return a java model status describing the problem related to this classpath entry if any, a status object with code <code>IStatus.OK</code> if the entry is fine
1827
	 * @return a java model status describing the problem related to this classpath entry if any, a status object with code <code>IStatus.OK</code> if the entry is fine
1828
	 */
1828
	 */
1829
	public static IJavaModelStatus validateClasspathEntry(IJavaProject project, IClasspathEntry entry, boolean checkSourceAttachment, boolean referredByContainer){
1829
	public static IJavaModelStatus validateClasspathEntry(IJavaProject project, IClasspathEntry entry, boolean checkSourceAttachment, boolean referredByContainer){
1830
		JavaModelManager.getJavaModelManager().resetInvalideArchivesListCache();
1830
		IJavaModelStatus status = validateClasspathEntry(project, entry, null, checkSourceAttachment, referredByContainer);
1831
		IJavaModelStatus status = validateClasspathEntry(project, entry, null, checkSourceAttachment, referredByContainer);
1831
		// https://bugs.eclipse.org/bugs/show_bug.cgi?id=171136 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=300136
1832
		// https://bugs.eclipse.org/bugs/show_bug.cgi?id=171136 and https://bugs.eclipse.org/bugs/show_bug.cgi?id=300136
1832
		// Ignore class path errors from optional entries.
1833
		// Ignore class path errors from optional entries.
(-)model/org/eclipse/jdt/internal/core/JavaModelManager.java (+4 lines)
Lines 3881-3886 Link Here
3881
	public void resetClasspathListCache() {
3881
	public void resetClasspathListCache() {
3882
		if (this.nonChainingJars != null) 
3882
		if (this.nonChainingJars != null) 
3883
			this.nonChainingJars.clear();
3883
			this.nonChainingJars.clear();
3884
		resetInvalideArchivesListCache();
3885
	}
3886
3887
	public void resetInvalideArchivesListCache() {
3884
		if (this.invalidArchives != null) 
3888
		if (this.invalidArchives != null) 
3885
			this.invalidArchives.clear();
3889
			this.invalidArchives.clear();
3886
	}
3890
	}

Return to bug 357425