Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8169204

Need to document JSObject Call and setSlot APIs to use weak references

XMLWordPrintable

    • web

        In order to fix JDK-8089681 we now use weak references in the WebKit JavaScript bridge code to hold onto Java objects that are bound to JavaScript objects using JSObject.setMember.

        The above behaviour need to updated for other JSObject APIs like "call" and "setSlot" also in order to address JDK-8168625

        Applications that rely on the previous, buggy behavior might be surprised by the fact that objects that are not strongly held by the application are subject to garbage collection even though they are bound to a JavaScript object.

        We should document this fact in the WebEngine documentation in the section on "Calling back to Java from JavaScript".

              mbilla Murali Billa
              mbilla Murali Billa
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: