35 Star 168 Fork 697

OpenHarmony / arkcompiler_ets_runtime

 / 详情

[问题咨询]: 同进程获取单例失效

待办的
创建于  
2024-03-11 09:27

问题描述

1、出现问题时,您做了哪些操作?
回答:应用开关获取实例对象时,同进程对象被new了两次
2、您希望得到什么结果,实际得到什么结果?
回答:
希望结果:同进程单实例对象只会new一次,对象是一个同对象
实际结果:同进程对象被new了两次,是不同对象,对象内属性也不相同

代码及LOG见原始问题#37954

评论 (1)

代育红 创建了任务
代育红 添加了
 
question
标签
展开全部操作日志

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @weng-changcheng @gonggong @孙哲 @Gargoyle.h 。如果需要调整订阅PR、Issue的变更状态,请访问链接

Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @weng-changcheng @gonggong @孙哲 @Gargoyle.h for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

openharmony_ci 添加了
 
waiting_for_assign
标签

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
7387629 openharmony ci 1656582662
1
https://gitee.com/openharmony/arkcompiler_ets_runtime.git
git@gitee.com:openharmony/arkcompiler_ets_runtime.git
openharmony
arkcompiler_ets_runtime
arkcompiler_ets_runtime

搜索帮助

344bd9b3 5694891 D2dac590 5694891