From c591429bef5ed7b88a9b5d1f0eb0dd3d3f94225d Mon Sep 17 00:00:00 2001 From: Snjezana Peco Date: Fri, 6 Dec 2024 18:38:11 +0100 Subject: [PATCH] javac doesn't configure output folders of dependent projects correctly Signed-off-by: Snjezana Peco --- .../src/org/eclipse/jdt/internal/javac/JavacUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/JavacUtils.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/JavacUtils.java index 8b872bba4fc..a76fcfae878 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/JavacUtils.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/internal/javac/JavacUtils.java @@ -300,7 +300,7 @@ private static void configurePaths(JavaProject javaProject, Context context, Jav }) .collect(Collectors.toSet()); - Collection classpathFiles = classpathEntriesToFiles(javaProject, entry -> entry.getEntryKind() != IClasspathEntry.CPE_SOURCE && (isTest || !entry.isTest())); + Collection classpathFiles = classpathEntriesToFiles(javaProject, entry -> isTest || !entry.isTest()); Collection filteredFiles = classpathFiles.stream().filter(x -> x.length() != 0).toList(); fileManager.setLocation(StandardLocation.CLASS_PATH, filteredFiles); classpathFiles.addAll(outDirectories(javaProject, entry -> isTest || !entry.isTest()));