Download and unzip
http://beetle.cz.oracle.com/~jtulach/jdk/28180/nglib-0.1-SNAPSHOT-html.java.net.zip
run
$ java -jar nglib-0.1-SNAPSHOT.jar
you'll get
java.lang.IllegalAccessException: Class sun.reflect.misc.Trampoline can not access a member of class cz.position.test.nglib.NgControls$1 with modifiers "public"
At that moment the WebView tries to invoke a Runnable.run() method on a non-public implementation of Runnable interface. I can't require all subclasses of Runnable to be public (in applications written by others), so I am in need of improving the calling mechanism from WebView to Java to find proper public method in super classes or super interfaces.
http://beetle.cz.oracle.com/~jtulach/jdk/28180/nglib-0.1-SNAPSHOT-html.java.net.zip
run
$ java -jar nglib-0.1-SNAPSHOT.jar
you'll get
java.lang.IllegalAccessException: Class sun.reflect.misc.Trampoline can not access a member of class cz.position.test.nglib.NgControls$1 with modifiers "public"
At that moment the WebView tries to invoke a Runnable.run() method on a non-public implementation of Runnable interface. I can't require all subclasses of Runnable to be public (in applications written by others), so I am in need of improving the calling mechanism from WebView to Java to find proper public method in super classes or super interfaces.
- relates to
-
JDK-8087754 Creating a Java callback in JavaFX WebView causes HotSpot crash
-
- Closed
-