-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
b114
-
Verified
Two issues in jigsaw m3 change:
1) cache of proxy classes is changed from ClassLoader+interfaces to Module+interfaces.
For each newProxyInstance invocation, it performs the mapping from ClassLoader+interfaces to Module and other required validation that incurs additional overhead.
2) getProxyClass() is deprecated as proxy class could be strongly encapsulated in named module. It is not accessible to call Class::newInstance.
Existing code doing its own caching of proxy classes to avoid the costs of re-validation will work if all proxy interfaces are public and exported as it is generated in an unnamed module.
This will need to be revisited for the case when proxy class is inaccessible.
- relates to
-
JDK-8134656 API to support dynamic modules
-
- Closed
-