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

Immutability analysis is unsound for constructors #135

Open
errt opened this issue Aug 31, 2023 · 0 comments
Open

Immutability analysis is unsound for constructors #135

errt opened this issue Aug 31, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@errt
Copy link
Collaborator

errt commented Aug 31, 2023

The field immutability analysis currently ignores all assignments in constructors, but if the object escapes the constructor or a field is read inside the constructor before the assignment, a different field value can be observed.

@errt errt added the bug Something isn't working label Aug 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

2 participants