diff --git a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacCompilationUnitResolver.java b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacCompilationUnitResolver.java index 352b43ba017..8464bb967df 100644 --- a/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacCompilationUnitResolver.java +++ b/org.eclipse.jdt.core.javac/src/org/eclipse/jdt/core/dom/JavacCompilationUnitResolver.java @@ -203,7 +203,7 @@ private void configurePaths(JavaProject javaProject, Context context) { IResource member = javaProject.getProject().getParent().findMember(javaProject.getOutputLocation()); if( member != null ) { File f = member.getLocation().toFile(); - List l = List.of(member); + List l = List.of(f); fileManager.setLocation(StandardLocation.CLASS_OUTPUT, l); } fileManager.setLocation(StandardLocation.SOURCE_PATH, classpathEntriesToFiles(javaProject, entry -> entry.getEntryKind() == IClasspathEntry.CPE_SOURCE));