Add -Xuse-old-class-files-reading CLI argument
By default we use the fast implementation in CLI compiler, but in the most of the tests the old one is enabled Also add tests on CompiledJava with the fast class reading implementation
This commit is contained in:
@@ -200,7 +200,10 @@ class KotlinCliJavaFileManagerTest : KotlinTestWithEnvironment() {
|
||||
val coreJavaFileManager = ServiceManager.getService(project, CoreJavaFileManager::class.java) as KotlinCliJavaFileManagerImpl
|
||||
|
||||
val root = environment.contentRootToVirtualFile(JavaSourceRoot(javaFilesDir!!, null))!!
|
||||
coreJavaFileManager.initIndex(JvmDependenciesIndexImpl(listOf(JavaRoot(root, JavaRoot.RootType.SOURCE))))
|
||||
coreJavaFileManager.initialize(
|
||||
JvmDependenciesIndexImpl(listOf(JavaRoot(root, JavaRoot.RootType.SOURCE))),
|
||||
useFastClassFilesReading = true
|
||||
)
|
||||
|
||||
return coreJavaFileManager
|
||||
}
|
||||
|
||||
+1757
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user