This content has been marked as final.
Show 3 replies
-
1. Re: Adding class loading lock to JBoss Modules
ctomc Dec 6, 2019 3:02 AM (in response to pmm)dmlloyd might be able to help.
-
2. Re: Adding class loading lock to JBoss Modules
dmlloyd Dec 6, 2019 1:41 PM (in response to pmm)You can try it out, I think there may be a chance of deadlock though. It's really hard to say for sure.
-
3. Re: Adding class loading lock to JBoss Modules
pmm Dec 7, 2019 6:18 AM (in response to dmlloyd)dmlloyd wrote:
You can try it out, I think there may be a chance of deadlock though. It's really hard to say for sure.
Right, but because we're acquiring a class level lock per ModuleClassLoader that would require a circular dependency between classes in different modules that have circular dependencies between themselves, correct?
These classes would by definition have to be in different JARs but be compiled against each other. I guess that's possible but quite hard to pull off. JUnit 4 requiring hamcrest classes and hamcrest requiring JUnit 4 classes comes to mind.