From 2ee3ec307200cb37cfa01398213e7b9696e9dc5c Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 4 Oct 2023 12:38:52 +0200 Subject: [PATCH] [test-framework] Store LocalDateTime together with project creation trace GitOrigin-RevId: 65273a219cc8c037f6997ef2867eeb7af331889f --- .../src/com/intellij/openapi/project/impl/ProjectImpl.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.kt b/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.kt index 2a6d319fe6eb..72f4e1ced14c 100644 --- a/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.kt +++ b/platform/platform-impl/src/com/intellij/openapi/project/impl/ProjectImpl.kt @@ -51,6 +51,7 @@ import java.lang.invoke.MethodHandles import java.lang.invoke.MethodType import java.nio.file.ClosedFileSystemException import java.nio.file.Path +import java.time.LocalDateTime import java.util.concurrent.atomic.AtomicReference internal val projectMethodType: MethodType = MethodType.methodType(Void.TYPE, Project::class.java) @@ -389,7 +390,7 @@ open class ProjectImpl(parent: ComponentManagerImpl, filePath: Path, projectName private fun storeCreationTrace() { if (ApplicationManager.getApplication().isUnitTestMode) { - putUserData(CREATION_TRACE, ExceptionUtil.currentStackTrace()) + putUserData(CREATION_TRACE, "${LocalDateTime.now()}@${ExceptionUtil.currentStackTrace()}") } }