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

Unify bytecode transformation logic for constructors (<init> methods) and regular methods. #449

Open
eupp opened this issue Jan 22, 2025 · 0 comments

Comments

@eupp
Copy link
Collaborator

eupp commented Jan 22, 2025

Currently, the for <init> methods Lincheck applies different set of bytecode transformers, compared to regular methods. This often leads to bugs. We need to revisit this logic, and unify the logic of constructors and regular methods instrumentation.

However, note that for <init> methods we still need some additional checks to tackle "leaking this" problem, see #424

@eupp eupp added enhancement New feature or request refactoring and removed enhancement New feature or request labels Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant