Wrote /root/JavaX-Caches/tmp_197856817/main.java - 1275 bytes (written=1275, should be 1275) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 11 -target 11 -nowarn -encoding utf8 -Xdiags:verbose -cp /root/.javax/x30.jar:/root/dexcompiler/android.jar:/root/dexcompiler/support-v4-22.2.1.jar:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_1022978277 /root/JavaX-Caches/tmp_197856817/main.java 2>&1
[Compilation Error]

Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.

/root/JavaX-Caches/tmp_197856817/main.java:1: error: class, interface, or enum expected static void fillJPopupMenu(JPopupMenu m, O... x) { ^ /root/JavaX-Caches/tmp_197856817/main.java:3: error: class, interface, or enum expected for i over x: { ^ /root/JavaX-Caches/tmp_197856817/main.java:5: error: class, interface, or enum expected ifdef fillJPopupMenu_debug ^ /root/JavaX-Caches/tmp_197856817/main.java:7: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_197856817/main.java:10: error: class, interface, or enum expected else if (o instanceof L) ^ /root/JavaX-Caches/tmp_197856817/main.java:12: error: class, interface, or enum expected else if (isMenuSeparatorIndicator(o)) ^ /root/JavaX-Caches/tmp_197856817/main.java:14: error: class, interface, or enum expected ifclass LiveValue ^ /root/JavaX-Caches/tmp_197856817/main.java:15: error: <identifier> expected else if (o instanceof LiveValue && o/LiveValue.getType() == S.class && isRunnableX(y)) { ^ /root/JavaX-Caches/tmp_197856817/main.java:16: error: ';' expected final LiveValue<S> lv = cast o; ^ /root/JavaX-Caches/tmp_197856817/main.java:16: error: <identifier> expected final LiveValue<S> lv = cast o; ^ /root/JavaX-Caches/tmp_197856817/main.java:18: error: invalid method declaration; return type required bindLiveValueListenerToComponent(mi, lv, r { ^ /root/JavaX-Caches/tmp_197856817/main.java:18: error: <identifier> expected bindLiveValueListenerToComponent(mi, lv, r { ^ /root/JavaX-Caches/tmp_197856817/main.java:18: error: <identifier> expected bindLiveValueListenerToComponent(mi, lv, r { ^ /root/JavaX-Caches/tmp_197856817/main.java:18: error: <identifier> expected bindLiveValueListenerToComponent(mi, lv, r { ^ /root/JavaX-Caches/tmp_197856817/main.java:19: error: ';' expected S s = lv!; ^ /root/JavaX-Caches/tmp_197856817/main.java:26: error: illegal start of type }); ^ /root/JavaX-Caches/tmp_197856817/main.java:27: error: <identifier> expected m.add(mi); ^ /root/JavaX-Caches/tmp_197856817/main.java:27: error: <identifier> expected m.add(mi); ^ /root/JavaX-Caches/tmp_197856817/main.java:29: error: class, interface, or enum expected endif ^ /root/JavaX-Caches/tmp_197856817/main.java:32: error: class, interface, or enum expected ++i; ^ /root/JavaX-Caches/tmp_197856817/main.java:33: error: class, interface, or enum expected } else if (o instanceof JMenuItem) ^ /root/JavaX-Caches/tmp_197856817/main.java:35: error: class, interface, or enum expected else if (o instanceof S || o instanceof Action || o instanceof Component) ^ /root/JavaX-Caches/tmp_197856817/main.java:37: error: class, interface, or enum expected else if (o != null) ^ /root/JavaX-Caches/tmp_197856817/main.java:39: error: class, interface, or enum expected } ^ 24 errors