-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Improve support for multiple JaCoCo runtimes in the same VM #1057
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
Conversation
|
In Java 5 |
b141ae0 to
bf33846
Compare
|
@marchof I've just tested this PR with my Quarkus reproducer and there is no cc @Godin |
bf33846 to
3b36f7c
Compare
|
@marchof many thanks for this. For what its worth: I was hit by the issue using Quarkus 1.6.1 and can confirm your fix. |
henrik242
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
3b36f7c to
6338b40
Compare
|
I am using this branch in my quarkus project now since a week and it fixes all(*) my issues. Would be great if it would make it into 0.8.7. (*) Well, all my coverage related issues, anyway. |
jorsol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! confirmed the fix locally in a Quarkus application.
Please target this to 0.8.7
|
Please include this in the next JaCoCo release, hopefully soon |
6338b40 to
7ac6460
Compare
|
Hi @Godin I try to pick up this PR again. Should I cherry-pick the commit "Add org.jacoco.core.test to dependencyManagement" into a separate PR to make this PR smaller and more specific? |
FileChannel.lock() throws OverlappingFileLockException when the file is locked from within the same JVM. This can happen when multiple JaCoCo agents are loaded by different classloaders
7ac6460 to
bc94706
Compare
org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/FileOutputTest.java
Outdated
Show resolved
Hide resolved
org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/FileOutputTest.java
Outdated
Show resolved
Hide resolved
org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/FileOutputTest.java
Outdated
Show resolved
Hide resolved
org.jacoco.core.test/src/org/jacoco/core/test/validation/JavaVersion.java
Outdated
Show resolved
Hide resolved
org.jacoco.agent.rt.test/src/org/jacoco/agent/rt/internal/output/FileOutputTest.java
Outdated
Show resolved
Hide resolved
Co-authored-by: Evgeny Mandrikov <[email protected]>
Co-authored-by: Evgeny Mandrikov <[email protected]>
Co-authored-by: Evgeny Mandrikov <[email protected]>
|
@Godin Thx for the review! I applied your proposals. |
FileChannel.lock() throws OverlappingFileLockException when the file is
locked from within the same JVM. This can happen when multiple JaCoCo
agents are loaded by different classloaders.
Fixes #331