From 9a263b833251e7953eac177cade57ba54f4cf15c Mon Sep 17 00:00:00 2001 From: Lyupa Anastasia Date: Mon, 30 Jun 2025 18:23:57 +0300 Subject: [PATCH] Revert "Revert Union Type" This reverts commit 53efa8494c0561ddad3a9adb358a87f93f7cc946. Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICIYJL Signed-off-by: Lyupa Anastasia --- frameworks/ets/ani/src/sts_common.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/ets/ani/src/sts_common.cpp b/frameworks/ets/ani/src/sts_common.cpp index f0002ca40..b640955e5 100644 --- a/frameworks/ets/ani/src/sts_common.cpp +++ b/frameworks/ets/ani/src/sts_common.cpp @@ -621,7 +621,8 @@ bool CreateDate(ani_env *env, int64_t time, ani_object &outObj) return false; } ani_method ctor; - if (ANI_OK != (status = env->Class_FindMethod(cls, "", "Lstd/core/Object;:V", &ctor))) { + if (ANI_OK != (status = env->Class_FindMethod( + cls, "", "X{C{escompat.Date}C{std.core.Numeric}C{std.core.String}}:V", &ctor))) { ANS_LOGD("error. not find method name ''. status %{public}d", status); return false; } -- Gitee