Wrote /root/JavaX-Caches/tmp_1323771363/main.java - 1282 bytes (written=1282, should be 1282) 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_171602077 /root/JavaX-Caches/tmp_1323771363/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_1323771363/main.java:1: error: class, interface, or enum expected static LS tok_moveImportsUp(L<S> tok) { ^ /root/JavaX-Caches/tmp_1323771363/main.java:8: error: class, interface, or enum expected int i; ^ /root/JavaX-Caches/tmp_1323771363/main.java:9: error: class, interface, or enum expected new Set<S> have; ^ /root/JavaX-Caches/tmp_1323771363/main.java:10: error: class, interface, or enum expected for (i = 1; i < l(tok); i += 2) ^ /root/JavaX-Caches/tmp_1323771363/main.java:10: error: class, interface, or enum expected for (i = 1; i < l(tok); i += 2) ^ /root/JavaX-Caches/tmp_1323771363/main.java:10: error: class, interface, or enum expected for (i = 1; i < l(tok); i += 2) ^ /root/JavaX-Caches/tmp_1323771363/main.java:11: error: unclosed character literal if (eq(tok.get(i), 'import)) { ^ /root/JavaX-Caches/tmp_1323771363/main.java:13: error: class, interface, or enum expected if (j < 0) break; ^ /root/JavaX-Caches/tmp_1323771363/main.java:14: error: class, interface, or enum expected S s = joinSubList(tok, i, j+1); ^ /root/JavaX-Caches/tmp_1323771363/main.java:15: error: class, interface, or enum expected have.add(s); ^ /root/JavaX-Caches/tmp_1323771363/main.java:16: error: class, interface, or enum expected i = j; ^ /root/JavaX-Caches/tmp_1323771363/main.java:17: error: class, interface, or enum expected } else break; ^ /root/JavaX-Caches/tmp_1323771363/main.java:21: error: class, interface, or enum expected new L<IntRange> reToks; ^ /root/JavaX-Caches/tmp_1323771363/main.java:24: error: class, interface, or enum expected for (int i2 : cloneList(indicesOf(tok, "import"))) ^ /root/JavaX-Caches/tmp_1323771363/main.java:27: error: class, interface, or enum expected if (j < 0) continue; // huh? ^ /root/JavaX-Caches/tmp_1323771363/main.java:28: error: class, interface, or enum expected S s = joinSubList(tok, i2, j+1); ^ /root/JavaX-Caches/tmp_1323771363/main.java:30: error: class, interface, or enum expected if (!have.contains(s)) { ^ /root/JavaX-Caches/tmp_1323771363/main.java:32: error: class, interface, or enum expected have.add(s); ^ /root/JavaX-Caches/tmp_1323771363/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1323771363/main.java:35: error: class, interface, or enum expected ifndef tok_moveImportsUp_skipMostReToks ^ /root/JavaX-Caches/tmp_1323771363/main.java:37: error: class, interface, or enum expected endifndef ^ /root/JavaX-Caches/tmp_1323771363/main.java:42: error: class, interface, or enum expected tok.set(1, str(buf)+"\n"+tok.get(1)); ^ /root/JavaX-Caches/tmp_1323771363/main.java:43: error: class, interface, or enum expected reToks.add(intRange(1, 2)); ^ /root/JavaX-Caches/tmp_1323771363/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1323771363/main.java:47: error: class, interface, or enum expected } ^ 25 errors