IJPL-162923 DevKit: broken classpath, error logged

GitOrigin-RevId: 3329cb71bd99b6f50a8f1f29e794936028943e4d
This commit is contained in:
Yann Cébron
2024-09-26 12:15:28 +00:00
committed by intellij-monorepo-bot
parent fcb017eb0f
commit f972eb7c3b
2 changed files with 3 additions and 2 deletions
@@ -160,6 +160,8 @@ public final class IdeaJdk extends JavaDependentSdkType implements JavaSdkType {
private static VirtualFile[] getIdeaLibrary(String home) {
List<VirtualFile> result = new ArrayList<>();
appendIdeaLibrary(home, result, "junit.jar", "junit4.jar"); // DO NOT REMOVE
ProductInfo productInfo = ProductInfoKt.loadProductInfo(home);
if (productInfo != null) {
final JarFileSystem jfs = JarFileSystem.getInstance();
@@ -1,4 +1,4 @@
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
package org.jetbrains.idea.devkit.projectRoots;
import com.intellij.openapi.application.ApplicationManager;
@@ -183,7 +183,6 @@ public class IdeaJdkConfigurable implements AdditionalDataConfigurable {
final SdkModificator modificator = myIdeaJdk.getSdkModificator();
modificator.setSdkAdditionalData(sandbox);
ApplicationManager.getApplication().runWriteAction(modificator::commitChanges);
((ProjectJdkImpl) myIdeaJdk).resetVersionString();
myModified = false;
}