Details
-
Bug
-
Status: Resolved
-
P3
-
Resolution: Fixed
-
9
-
b122
-
generic
-
generic
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8163785 | 8u121 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8158368 | 8u112 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
JDK-8167952 | emb-8u121 | Sundararajan Athijegannathan | P3 | Resolved | Fixed | b01 |
Description
Nashorn's ScriptLoader uses Context's "appLoader" as it's parent loader. But it's loadClass delegates to StructureLoader first for nashorn and nashorn generated classes.
With the new parent/child Layer of Modules, StructureLoader created Layer is parent layer of ScriptLoader created Layer. So, it is better if the class loader delegation is from ScriptLoader to StructureLoader. And then split delegation to non-nashorn classes (from findClass) to Context's appLoader. Note that the split delegation is still needed. Without that certain caller class loader based class resolutions will not work.
With the new parent/child Layer of Modules, StructureLoader created Layer is parent layer of ScriptLoader created Layer. So, it is better if the class loader delegation is from ScriptLoader to StructureLoader. And then split delegation to non-nashorn classes (from findClass) to Context's appLoader. Note that the split delegation is still needed. Without that certain caller class loader based class resolutions will not work.
Attachments
Issue Links
- backported by
-
JDK-8158368 Nashorn's ScriptLoader split delegation has to be adjusted
-
- Resolved
-
-
JDK-8163785 Nashorn's ScriptLoader split delegation has to be adjusted
-
- Resolved
-
-
JDK-8167952 Nashorn's ScriptLoader split delegation has to be adjusted
-
- Resolved
-