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