-
Enhancement
-
Resolution: Fixed
-
P3
-
9
-
None
-
b89
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8142842 | emb-9 | Attila Szegedi | P3 | Resolved | Fixed | team |
Eliminate both GuardedTypeConversion and DynamicLinker.getCurrentLinkRequest and its associated permission. Instead introduce a more robust scheme where GuardingTypeConverterFactory.convertToType takes a Supplier<MethodHandles.Lookup> parameter through which it can access the current lookup when needed, subject to the CallSiteDescriptor.getLookup security check. This also allows a more robust design where the TypeConverterFactory can decide on whether a converter is lookup-sensitive and thus not cacheable based on whether any of the converter factories actually retrieved the lookup object through the supplier; previously the factories had to be trusted with this decision by setting the GuardedTypeConversion.cacheable flag.
- backported by
-
JDK-8142842 Eliminate GuardedTypeConversion, DynamicLinker.getCurrentLinkRequest and its associated permission
-
- Resolved
-