开发者

Elements of one collection end up in another collection, but I did not prescribe this [closed]

开发者 https://www.devze.com 2022-12-07 21:19 出处:网络
Closed. This question needs debugging details. It is not currently accepting answers. 开发者_高级运维 Edit the question to include desired behavior, a specific problem or error, and the sh
Closed. This question needs debugging details. It is not currently accepting answers.
开发者_高级运维

Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.

Closed 9 hours ago.

Improve this question

Inside the method, an object is created in which, with the help of set, values ​​​​are assigned to the fields, there are 3 such methods, and in each of them a different method is called. The problem is that data from one method call ends up in another method call. It's like they have a global collection where all the data goes.

I expected the method frame to be a method frame, not the whole class... I tried clearing gc after each set, but that didn't help either. The DAO class seems to have its own collection where it writes all the data and doesn't clear it after exiting.

0

精彩评论

暂无评论...
验证码 换一张
取 消