[AA] KT-55566 StandaloneProjectFactory: Setup JDK default module roots

- Setup JDK default module roots in `StandaloneProjectFactory` (compare
  with `KotlinCoreEnvironment`). The implementation is a distilled
  version of `ClasspathRootsResolver`'s default module handling.
- This fixes an issue where some LL FIR tests with JDK 17 and 11 had
  mismatched types between Kotlin and Java sources.

^KT-55566 fixed
This commit is contained in:
Marco Pennekamp
2023-01-03 18:44:32 +01:00
committed by Space Team
parent e68111c218
commit a777ffcd8a
12 changed files with 97 additions and 71 deletions
@@ -1,5 +1,4 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FIR_IDE_IGNORE
// !API_VERSION: 1.5
// !LANGUAGE: -JvmRecordSupport
// SKIP_TXT
@@ -1,5 +1,4 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FIR_IDE_IGNORE
// !API_VERSION: 1.5
// !LANGUAGE: -JvmRecordSupport
// SKIP_TXT
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// FIR_IDE_IGNORE
// API_VERSION: 1.5
// LANGUAGE: +JvmRecordSupport
// SCOPE_DUMP: MyRecord:x
@@ -1,5 +1,4 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FIR_IDE_IGNORE
// !API_VERSION: 1.5
// !LANGUAGE: +JvmRecordSupport
// JVM_TARGET: 17
@@ -1,5 +1,4 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FIR_IDE_IGNORE
// !API_VERSION: 1.5
// !LANGUAGE: +JvmRecordSupport
// JVM_TARGET: 17
@@ -1,5 +1,4 @@
// FIR_IDENTICAL
// FIR_IDE_IGNORE
// API_VERSION: 1.5
// LANGUAGE: +JvmRecordSupport
// SCOPE_DUMP: MyRecord:x;y;z
@@ -1,5 +1,4 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FIR_IDE_IGNORE
// !API_VERSION: 1.5
// !LANGUAGE: +JvmRecordSupport
// JVM_TARGET: 17
@@ -1,5 +1,4 @@
// FIR_DISABLE_LAZY_RESOLVE_CHECKS
// FIR_IDE_IGNORE
// !API_VERSION: 1.5
// !LANGUAGE: +JvmRecordSupport
// JVM_TARGET: 17