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

Support instrumentation of hidden classes #451

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

Support instrumentation of hidden classes #451

eupp opened this issue Jan 24, 2025 · 0 comments

Comments

@eupp
Copy link
Collaborator

eupp commented Jan 24, 2025

Currently, hidden classes cannot be instrumented by Lincheck, because we use dynamic agent attachment and class re-transformation.
However, hidden classes are not modifiable and thus cannot be redefined or re-transformed:
https://bugs.openjdk.org/browse/JDK-8230502

This poses a problem for us. Since Java 15+, lambdas in Java are compiled into hidden classes. It means that we currently cannot instrument Java lambdas on JDKs 15+.

@eupp eupp changed the title Support instrumentation of hidden classes. Support instrumentation of hidden classes Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant