Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -986,6 +986,14 @@ private static void resolvedChainedLibraries(IPath jarPath, HashSet visited, Arr
}
continue;
}
if (JavaModelManager.CP_RESOLVE_VERBOSE_FAILURE && calledJar.isPrefixOf(jarPath)) {
// Adding parent folders is a hack that some JARs use to spare some effort,
// but it may cause issues like having invalid duplicated classes in the classpath.
// See https://github.com/eclipse-jdt/eclipse.jdt.core/issues/4797
trace("WARN: Classpath entry " + calledFileName + " in manifest of jar file: " //$NON-NLS-1$ //$NON-NLS-2$
+ jarPath.toOSString()
+ " references a parent folder. This may cause issues like duplicated classes in the classpath, wrong hierarchies, etc. For more details, see https://github.com/eclipse-jdt/eclipse.jdt.core/issues/4797."); //$NON-NLS-1$
}
resolvedChainedLibraries(calledJar, visited, result);
result.add(calledJar);
}
Expand Down
Loading