From b1a718df133ec20d3c0c62f62fc924ec9525df88 Mon Sep 17 00:00:00 2001 From: Andrey Loskutov Date: Thu, 9 Jan 2025 10:26:47 +0100 Subject: [PATCH] Revert "Remove resolve classpath when fetching a raw classpath (#3531)" This reverts commit b79bd1dc3aa63a35b1963a01b9941eee167dca75 as it introduces regressions. Fixes https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3534 --- .../model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java | 1 + 1 file changed, 1 insertion(+) diff --git a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java index 2e1cab929a3..f37dc02f63a 100644 --- a/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java +++ b/org.eclipse.jdt.core/model/org/eclipse/jdt/internal/core/PackageFragmentRoot.java @@ -613,6 +613,7 @@ public IClasspathEntry getRawClasspathEntry() throws JavaModelException { IClasspathEntry rawEntry = null; JavaProject project = getJavaProject(); + project.getResolvedClasspath(); // force the reverse rawEntry cache to be populated Map rootPathToRawEntries = project.getPerProjectInfo().rootPathToRawEntries; if (rootPathToRawEntries != null) { rawEntry = (IClasspathEntry) rootPathToRawEntries.get(getPath());