JDK-8040078 : Avoid repeated reading of source for cached loads
Type:Bug
Component:core-libs
Sub-Component:jdk.nashorn
Affected Version:8u20,9
Priority:P4
Status:Resolved
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2014-04-14
Updated:2014-07-29
Resolved:2014-05-06
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Repeated loading of scripts within the same context will usually reuse cached classes. However, the source is still read for each load(), which could probably be avoided.