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

Need to document that JavaScript to Java bindings use weak references

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 8u102, 9
    • javafx
    • 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.

        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
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: