mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-08 15:09:39 +07:00
InheritedJdkTest.test1: prevent name conflicts between used JDKS (both are 1.7), not it's 1.7 and 1.8
It wasn't a problem before tree project model, but now SDKs are resolved by name there GitOrigin-RevId: 024173489f2abfecbf619b79dde9a8dca25a0bad
This commit is contained in:
committed by
intellij-monorepo-bot
parent
4871612ba0
commit
6b761e5ef9
@@ -55,7 +55,7 @@ public class InheritedJdkTest extends JavaModuleTestCase {
|
||||
assertFalse("JDK is not inherited after setJdk(null)", rootManager.isSdkInherited());
|
||||
assertNull("No JDK assigned", rootManager.getSdk());
|
||||
|
||||
final Sdk jdk1 = IdeaTestUtil.getMockJdk17();
|
||||
final Sdk jdk1 = IdeaTestUtil.getMockJdk18();
|
||||
ApplicationManager.getApplication().runWriteAction(() -> ProjectJdkTable.getInstance().addJdk(jdk1, getTestRootDisposable()));
|
||||
ModuleRootModificationUtil.setModuleSdk(myModule, jdk1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user