byte-buddy icon indicating copy to clipboard operation
byte-buddy copied to clipboard

Should `jdk.attach` be transitive required under JPMS?

Open arjenzhou opened this issue 1 year ago • 2 comments

While using mockito for testing, bytebuddy is including as well. Under the condition of JPMS, module-info.java must require jdk.attach then bytebuddy agent can attach JVM, or No compatible attachment provider is available will be thrown. For this sake, should jdk.attach be transitive required under JPMS?

arjenzhou avatar Aug 01 '23 17:08 arjenzhou

https://github.com/mockito/mockito/issues/2952#issuecomment-1660765854

arjenzhou avatar Aug 01 '23 17:08 arjenzhou

It should be, but we struggled to build Mockito with a module-info in place. I did not have time to look into that yet.

raphw avatar Aug 03 '23 09:08 raphw