From 32256f16166a228fa448c4a8c576feda0c953fc8 Mon Sep 17 00:00:00 2001 From: mmorozov Date: Mon, 23 Jun 2025 13:08:02 +0300 Subject: [PATCH] Fix public descriptors Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICGGVC Signed-off-by: mmorozov --- frameworks/native/runtime/sts_runtime.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frameworks/native/runtime/sts_runtime.cpp b/frameworks/native/runtime/sts_runtime.cpp index c9eaf0bcc83..5a9d811bc4b 100644 --- a/frameworks/native/runtime/sts_runtime.cpp +++ b/frameworks/native/runtime/sts_runtime.cpp @@ -664,6 +664,7 @@ std::unique_ptr STSRuntime::LoadStsModule(const std::string& return std::make_unique(); } std::string entryPath = EntryPathManager::GetInstance().GetEntryPath(srcEntrance); + std::replace(entryPath.begin(), entryPath.end(), '/', '.'); ani_string entryClassStr; aniEnv->String_NewUTF8(entryPath.c_str(), entryPath.length(), &entryClassStr); ani_class entryClass = nullptr; @@ -753,4 +754,4 @@ void STSRuntime::PreloadClass(const char *className) } } } // namespace AbilityRuntime -} // namespace OHOS \ No newline at end of file +} // namespace OHOS -- Gitee