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

Consider excluding all non-project classes from instrumentation #196

Closed
shanshin opened this issue Jul 28, 2022 · 2 comments
Closed

Consider excluding all non-project classes from instrumentation #196

shanshin opened this issue Jul 28, 2022 · 2 comments

Comments

@shanshin
Copy link
Collaborator

At the moment, by default, the IntelliJ agent instruments all classes loaded into the JVM. In some cases, this causes the generation of an erroneous bytecode and a subsequent verification error (for example in #89).

In new versions of libraries, if the java compiler >= version 11 is used, then the agent will use ConDy and such an error will not happen.
However, for older versions, it is necessary to exclude problematic classes (for example, android packages excluded implicitly).

@shanshin
Copy link
Collaborator Author

shanshin commented Aug 2, 2022

Issue in Coverage Agent

@shanshin
Copy link
Collaborator Author

The problem is unsolvable in Gradle, because due to inline functions, it is necessary to know the list of classes of all projects and distribute such a list to each of the projects - which violates the Gradle isolation principle.
In this case, each project will depend on all the others to correctly handle calls to inline functions.

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