Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A multi-threading bug in SingleValueVisitor generated by factory method. #112

Open
xingtanzjr opened this issue Dec 14, 2017 · 0 comments
Open
Assignees
Labels

Comments

@xingtanzjr
Copy link
Collaborator

xingtanzjr commented Dec 14, 2017

例如,当两个线程都在使用工厂生成的SingleValueVisitor<Interger>时,这两个线程会拿到同一个对象,当调用satisfied(value, filterExpression) 方法时候,会去同时修改 类内部变量 value的值, 这种情况下,会导致不可预知的错误

@xingtanzjr xingtanzjr changed the title 使用 “工厂生成 SingleValueVisitor 多线程bug 使用 “工厂生成的SingleValueVisitor” 时候的 多线程bug Dec 14, 2017
@xingtanzjr xingtanzjr assigned xingtanzjr and Beyyes and unassigned xingtanzjr Dec 14, 2017
@xingtanzjr xingtanzjr added the bug label Dec 14, 2017
@Beyyes Beyyes changed the title 使用 “工厂生成的SingleValueVisitor” 时候的 多线程bug A multi-threading bug in SingleValueVisitor generated by factory method. Dec 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants