From 0ecd9069296462a9832be2b149942b72f78a6c03 Mon Sep 17 00:00:00 2001 From: jiachong Date: Mon, 9 Jun 2025 20:56:42 +0800 Subject: [PATCH] Provide pandafile type descriptors for union types Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICDSWO?from=project-issue Signed-off-by: jiachong Change-Id: Ib184eb433c0626fb9172d1c4900c1184bb64d2f6 --- 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 253a124d3..f01ca5e96 100644 --- a/frameworks/ets/ani/src/sts_common.cpp +++ b/frameworks/ets/ani/src/sts_common.cpp @@ -600,7 +600,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))) { + const char* methodSignature = "X{C{escompat.Date}C{std.core.Numeric}C{std.core.String}}:V"; + if (ANI_OK != (status = env->Class_FindMethod(cls, "", methodSignature, &ctor))) { ANS_LOGD("error. not find method name ''. status %{public}d", status); return false; } -- Gitee