File tree Expand file tree Collapse file tree 2 files changed +2
-13
lines changed
src/main/java/com/example Expand file tree Collapse file tree 2 files changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,8 @@ This demo illustrates how to use the new experimental WebAssembly backend for Gr
66
77This demo requires:
88
9- 1 . An [ Early Access Build] ( https://github.com/graalvm/oracle-graalvm-ea-builds ) of Oracle GraalVM for JDK 25 or later.
10- For example, using SDKMAN!: ` sdk install java 25 .ea.26 -graal `
9+ 1 . An [ Early Access Build] ( https://github.com/graalvm/oracle-graalvm-ea-builds ) of Oracle GraalVM for JDK 26 or later.
10+ For example, using SDKMAN!: ` sdk install java 26 .ea.3 -graal `
11112 . The [ Binaryen toolchain] ( https://github.com/WebAssembly/binaryen ) in version 119 or later and on the system path.
1212 For example, using Homebrew: ` brew install binaryen `
1313
Original file line number Diff line number Diff line change @@ -37,14 +37,6 @@ public class WebMain {
3737 public static void main (String [] args ) {
3838 // Ensure file manager is initialized
3939 JavacCompilerWrapper .getFm ();
40- try {
41- // TODO GR-62854 Here to ensure handleEvent and run is generated. Remove once objects
42- // passed to @JS methods automatically have their SAM registered.
43- sink (EventHandler .class .getDeclaredMethod ("handleEvent" , JSObject .class ));
44- sink (Runnable .class .getDeclaredMethod ("run" ));
45- } catch (NoSuchMethodException e ) {
46- throw new RuntimeException (e );
47- }
4840
4941 addEventListener (COMPILE_BUTTON , "click" , e -> compileCallback ());
5042 addEventListener (INPUT , "keydown" , e -> {
@@ -67,9 +59,6 @@ private static void compileCallback() {
6759 });
6860 }
6961
70- @ JS ("" )
71- private static native void sink (Object o );
72-
7362 /**
7463 * Runs the given {@link Runnable} in {@code setTimeout} without delay.
7564 * <p>
You can’t perform that action at this time.
0 commit comments