Open cruftex opened 8 years ago
the whole of classloading needs specifying in detail for EE integration. This is particularly acute for Entry processors and events.
Completely agree. This is why for Coherence we invented the concept of a Coherence/Grid Archive (gar) that could encapsulate these things.
Perhaps Java 9 Modularity will help here... ;)
Current code is:
When used with a class, the classloader is stripped away and the class is actually loaded again:
The behavior is not obvious and not described in the Java Doc.
Furthermore, the Spec says on page 20:
My thoughts:
To fit this together, it could mean that Caches need to set the TCCL to the user provided classloader, before calling the factory. Maybe this is happening already.
I think there is a TODO here to ensure consistent semantics across implementations.