From 787c9530a704cc7274bd4bb6ae220dad511fd84c Mon Sep 17 00:00:00 2001 From: lanhaoyu Date: Wed, 27 Aug 2025 09:55:33 +0800 Subject: [PATCH] fix ani ConvertRemoteAbilityInfo Signed-off-by: lanhaoyu --- .../ani_distributed_bundle_manager_common.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp b/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp index e2822c9..a88ac65 100644 --- a/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp +++ b/interfaces/kits/ani/distributed_bundle_manager/ani_distributed_bundle_manager_common.cpp @@ -22,7 +22,8 @@ namespace OHOS { namespace AppExecFwk { namespace AniDistributedbundleManagerCommon { namespace { -constexpr const char* CLASSNAME_ELEMENT_NAME = "bundleManager.ElementNameInner.ElementNameInner"; +constexpr const char* CLASSNAME_ELEMENT_NAME = "bundleManager.ElementName.ElementName"; +constexpr const char* CLASSNAME_ELEMENT_NAME_INNER = "bundleManager.ElementNameInner.ElementNameInner"; constexpr const char* CLASSNAME_REMOTE_ABILITY_INFO = "bundleManager.RemoteAbilityInfoInner.RemoteAbilityInfoInner"; } @@ -76,7 +77,7 @@ ani_object ConvertDistributedBundleElementName(ani_env* env, const ElementName& .AddClass(CommonFunAniNS::CLASSNAME_STRING) // uri?: string .AddClass(CommonFunAniNS::CLASSNAME_STRING) // shortName?: string .BuildSignatureDescriptor(); - return CommonFunAni::CreateNewObjectByClassV2(env, CLASSNAME_ELEMENT_NAME, ctorSig, args); + return CommonFunAni::CreateNewObjectByClassV2(env, CLASSNAME_ELEMENT_NAME_INNER, ctorSig, args); } ani_object ConvertRemoteAbilityInfo(ani_env* env, const RemoteAbilityInfo& remoteAbilityInfo) -- Gitee