Wrote /root/JavaX-Caches/tmp_1626557366/main.java - 1502 bytes (written=1502, should be 1502)
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_782617650 /root/JavaX-Caches/tmp_1626557366/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1626557366/main.java:1: error: class, interface, or enum expected
static void fillJMenu(final JMenu m, O... x) {
^
/root/JavaX-Caches/tmp_1626557366/main.java:1: error: class, interface, or enum expected
static void fillJMenu(final JMenu m, O... x) {
^
/root/JavaX-Caches/tmp_1626557366/main.java:6: error: class, interface, or enum expected
for i over x: {
^
/root/JavaX-Caches/tmp_1626557366/main.java:8: error: class, interface, or enum expected
if (o instanceof L)
^
/root/JavaX-Caches/tmp_1626557366/main.java:10: error: class, interface, or enum expected
else if (isMenuSeparatorIndicator(o)) {
^
/root/JavaX-Caches/tmp_1626557366/main.java:13: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1626557366/main.java:15: error: expected
else if (o instanceof LiveValue && o/LiveValue.getType() == S.class && isRunnableX(y)) {
^
/root/JavaX-Caches/tmp_1626557366/main.java:16: error: ';' expected
final LiveValue lv = cast o;
^
/root/JavaX-Caches/tmp_1626557366/main.java:16: error: expected
final LiveValue lv = cast o;
^
/root/JavaX-Caches/tmp_1626557366/main.java:17: error: ')' expected
final JMenuItem mi = jmenuItem(or2(unCurlyBracket(lv!), "..."), y);
^
/root/JavaX-Caches/tmp_1626557366/main.java:17: error: expected
final JMenuItem mi = jmenuItem(or2(unCurlyBracket(lv!), "..."), y);
^
/root/JavaX-Caches/tmp_1626557366/main.java:18: error: invalid method declaration; return type required
bindLiveValueListenerToComponent(mi, lv, r {
^
/root/JavaX-Caches/tmp_1626557366/main.java:18: error: expected
bindLiveValueListenerToComponent(mi, lv, r {
^
/root/JavaX-Caches/tmp_1626557366/main.java:18: error: expected
bindLiveValueListenerToComponent(mi, lv, r {
^
/root/JavaX-Caches/tmp_1626557366/main.java:18: error: expected
bindLiveValueListenerToComponent(mi, lv, r {
^
/root/JavaX-Caches/tmp_1626557366/main.java:19: error: ';' expected
S s = lv!;
^
/root/JavaX-Caches/tmp_1626557366/main.java:27: error: illegal start of type
});
^
/root/JavaX-Caches/tmp_1626557366/main.java:28: error: invalid method declaration; return type required
print("bound live value " + lv + " to menu item " + mi);
^
/root/JavaX-Caches/tmp_1626557366/main.java:28: error: illegal start of type
print("bound live value " + lv + " to menu item " + mi);
^
/root/JavaX-Caches/tmp_1626557366/main.java:29: error: expected
m.add(mi);
^
/root/JavaX-Caches/tmp_1626557366/main.java:29: error: expected
m.add(mi);
^
/root/JavaX-Caches/tmp_1626557366/main.java:30: error: illegal start of type
++i;
^
/root/JavaX-Caches/tmp_1626557366/main.java:30: error: expected
++i;
^
/root/JavaX-Caches/tmp_1626557366/main.java:32: error: class, interface, or enum expected
endif
^
/root/JavaX-Caches/tmp_1626557366/main.java:35: error: class, interface, or enum expected
++i;
^
/root/JavaX-Caches/tmp_1626557366/main.java:36: error: class, interface, or enum expected
} else if (o instanceof JMenuItem)
^
/root/JavaX-Caches/tmp_1626557366/main.java:38: error: class, interface, or enum expected
else if (o instanceof S || o instanceof Action || o instanceof Component)
^
/root/JavaX-Caches/tmp_1626557366/main.java:40: error: class, interface, or enum expected
else if (o == null && y instanceof Runnable)
^
/root/JavaX-Caches/tmp_1626557366/main.java:42: error: class, interface, or enum expected
else if (o != null)
^
/root/JavaX-Caches/tmp_1626557366/main.java:44: error: class, interface, or enum expected
}
^
30 errors