From 74debfbc8b6c87323567a6964fe06a1ea87deba1 Mon Sep 17 00:00:00 2001 From: leo9001 Date: Sat, 21 Jun 2025 14:27:24 +0800 Subject: [PATCH] primitive type primitive type Issue:https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICGST0 Signed-off-by: leo9001 --- frameworks/native/backup_ext/include/ani_utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frameworks/native/backup_ext/include/ani_utils.h b/frameworks/native/backup_ext/include/ani_utils.h index 03cbc44f1..c13462126 100644 --- a/frameworks/native/backup_ext/include/ani_utils.h +++ b/frameworks/native/backup_ext/include/ani_utils.h @@ -299,7 +299,7 @@ inline std::optional OptionalAccessor::Convert() } ani_double aniValue; - auto ret = env_->Object_CallMethodByName_Double(obj_, "doubleValue", nullptr, &aniValue); + auto ret = env_->Object_CallMethodByName_Double(obj_, "unboxed", nullptr, &aniValue); if (ret != ANI_OK) { return std::nullopt; } -- Gitee