JDK-8035950 : Add guards for callsites depending on global object
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: jdk.nashorn
  • Affected Version: 8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2014-02-27
  • Updated: 2014-05-27
  • Resolved: 2014-05-08
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.

To download the current JDK release, click here.
Related Reports
Relates :  
Relates :  
In order to to share and reuse script classes (JDK-8021350) we need to add guards to callsites depending on the global object. This includes mostly global variables, but also primitives (depending on the global's primitive prototypes), variables declared in eval() etc.

Note that some globals properties that need to be guarded even within a single global currently are not (JDK-8034055)
This has been fixed by JDK-8021350.