Wrote /root/JavaX-Caches/tmp_809660122/main.java - 710 bytes (written=710, should be 710) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 1.8 -target 1.8 -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_490009386 /root/JavaX-Caches/tmp_809660122/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_809660122/main.java:1: error: class, interface, or enum expected !752 ^ /root/JavaX-Caches/tmp_809660122/main.java:6: error: illegal start of type *(S *user, S *text) {} ^ /root/JavaX-Caches/tmp_809660122/main.java:6: error: <identifier> expected *(S *user, S *text) {} ^ /root/JavaX-Caches/tmp_809660122/main.java:6: error: <identifier> expected *(S *user, S *text) {} ^ /root/JavaX-Caches/tmp_809660122/main.java:6: error: ';' expected *(S *user, S *text) {} ^ /root/JavaX-Caches/tmp_809660122/main.java:6: error: <identifier> expected *(S *user, S *text) {} ^ /root/JavaX-Caches/tmp_809660122/main.java:7: error: illegal start of type *() {} ^ /root/JavaX-Caches/tmp_809660122/main.java:11: error: class, interface, or enum expected static PersistentLog<Msg> msgs; ^ /root/JavaX-Caches/tmp_809660122/main.java:14: error: class, interface, or enum expected static new MultiMap<S, Msg> msgsByUser; ^ /root/JavaX-Caches/tmp_809660122/main.java:16: error: class, interface, or enum expected p { ^ /root/JavaX-Caches/tmp_809660122/main.java:18: error: class, interface, or enum expected for (Msg m : msgs) pcall { answer(m.text, m.user); } ^ /root/JavaX-Caches/tmp_809660122/main.java:18: error: class, interface, or enum expected for (Msg m : msgs) pcall { answer(m.text, m.user); } ^ /root/JavaX-Caches/tmp_809660122/main.java:21: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_809660122/main.java:25: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_809660122/main.java:29: error: class, interface, or enum expected new Matches m; ^ /root/JavaX-Caches/tmp_809660122/main.java:30: error: class, interface, or enum expected ret answerImpl(user); ^ /root/JavaX-Caches/tmp_809660122/main.java:31: error: class, interface, or enum expected msgsByUser.put(m.user, m); ^ /root/JavaX-Caches/tmp_809660122/main.java:32: error: class, interface, or enum expected if (matchStart("i have", s, m)) { ^ /root/JavaX-Caches/tmp_809660122/main.java:34: error: class, interface, or enum expected S rest = m.rest(); ^ /root/JavaX-Caches/tmp_809660122/main.java:35: error: class, interface, or enum expected print("Rest: " + quote(rest)); ^ /root/JavaX-Caches/tmp_809660122/main.java:36: error: class, interface, or enum expected ret "ok"; ^ /root/JavaX-Caches/tmp_809660122/main.java:37: error: class, interface, or enum expected } ^ 22 errors