File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed
native-image/wasm-javac/src/main/java/com/example Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,6 @@ public class WebMain {
37
37
public static void main (String [] args ) {
38
38
// Ensure file manager is initialized
39
39
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
- }
48
40
49
41
addEventListener (COMPILE_BUTTON , "click" , e -> compileCallback ());
50
42
addEventListener (INPUT , "keydown" , e -> {
@@ -67,9 +59,6 @@ private static void compileCallback() {
67
59
});
68
60
}
69
61
70
- @ JS ("" )
71
- private static native void sink (Object o );
72
-
73
62
/**
74
63
* Runs the given {@link Runnable} in {@code setTimeout} without delay.
75
64
* <p>
You can’t perform that action at this time.
0 commit comments