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

WebView: Using an instance of a non-public class to call back from javascript crashes the JVM

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 7u40
    • Fix Version/s: None
    • Component/s: javafx
    • Environment:

      Windows 7 64-bit
      Java 7u40

    • Subcomponent:
      web

      Description

      When passing an instance of a non-public nested class to use via javascript in a WebView to call back into Java, the JVM crashes hard (native stack overflow) when the method on that object is called from the javascript.

      Under Java 8b109 this merely results in an exception:
      Exception in thread "JavaFX Application Thread" java.lang.IllegalAccessException: Class sun.reflect.misc.Trampoline can not access a member of class webviewcallback.WebViewCallback$JavaAccessObject with modifiers "public"

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                peterz Peter Zhelezniakov
                Reporter:
                swpalmer Scott Palmer
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: