mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
exclude alt-rt.jar and alt-string.jar from created jdks - as they lead to incompatibility between cls and attached sources (IDEA-74547)
This commit is contained in:
@@ -477,6 +477,8 @@ public class JavaSdkImpl extends JavaSdk {
|
||||
if (jarDir != null && jarDir.isDirectory()) {
|
||||
File[] jarFiles = jarDir.listFiles(jarFileFilter);
|
||||
for (File jarFile : jarFiles) {
|
||||
final String jarFileName = jarFile.getName();
|
||||
if (jarFileName.equals("alt-rt.jar") || jarFileName.equals("alt-string.jar")) continue;
|
||||
try {
|
||||
// File.getCanonicalFile() allows us to filter out duplicate (symbolically linked) jar files,
|
||||
// commonly found in osx JDK distributions
|
||||
|
||||
Reference in New Issue
Block a user