Wrote /root/JavaX-Caches/tmp_1868582922/main.java - 6970 bytes (written=6970, should be 6970)
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_445267714 /root/JavaX-Caches/tmp_1868582922/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1868582922/main.java:1: error: class, interface, or enum expected
static S myBotName;
^
/root/JavaX-Caches/tmp_1868582922/main.java:2: error: class, interface, or enum expected
static long botRoom = 1;
^
/root/JavaX-Caches/tmp_1868582922/main.java:3: error: class, interface, or enum expected
static new Matches m; // for matching lines
^
/root/JavaX-Caches/tmp_1868582922/main.java:4: error: class, interface, or enum expected
static int historyGrab = 10; // read last 10 lines from history
^
/root/JavaX-Caches/tmp_1868582922/main.java:5: error: class, interface, or enum expected
static new L msgs;
^
/root/JavaX-Caches/tmp_1868582922/main.java:6: error: class, interface, or enum expected
static long lastSucked; // timestamp
^
/root/JavaX-Caches/tmp_1868582922/main.java:7: error: class, interface, or enum expected
static long suckDelay = 2000; // suck every X ms
^
/root/JavaX-Caches/tmp_1868582922/main.java:8: error: class, interface, or enum expected
static int maxLineLength = 1024; // should match groupchat.json.botsay.php
^
/root/JavaX-Caches/tmp_1868582922/main.java:9: error: class, interface, or enum expected
static boolean loop_firstTime = true;
^
/root/JavaX-Caches/tmp_1868582922/main.java:10: error: class, interface, or enum expected
static int loopDelay = 5000;
^
/root/JavaX-Caches/tmp_1868582922/main.java:11: error: class, interface, or enum expected
static boolean debug_printIncoming;
^
/root/JavaX-Caches/tmp_1868582922/main.java:12: error: class, interface, or enum expected
static O externalSucker, externalPoster;
^
/root/JavaX-Caches/tmp_1868582922/main.java:14: error: class, interface, or enum expected
static TestRoom testRoom; // Set for testing
^
/root/JavaX-Caches/tmp_1868582922/main.java:18: error: illegal start of type
new L msgs;
^
/root/JavaX-Caches/tmp_1868582922/main.java:19: error: illegal start of type
new L presences;
^
/root/JavaX-Caches/tmp_1868582922/main.java:26: error: '(' or '[' expected
new ChatLine line;
^
/root/JavaX-Caches/tmp_1868582922/main.java:36: error: class, interface, or enum expected
static void testMode() {
^
/root/JavaX-Caches/tmp_1868582922/main.java:38: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:42: error: class, interface, or enum expected
testRoom.roomID = roomID;
^
/root/JavaX-Caches/tmp_1868582922/main.java:43: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:48: error: class, interface, or enum expected
botRoom = roomID; // TODO: presence?
^
/root/JavaX-Caches/tmp_1868582922/main.java:49: error: class, interface, or enum expected
lastSucked = 0;
^
/root/JavaX-Caches/tmp_1868582922/main.java:50: error: class, interface, or enum expected
msgs = new L;
^
/root/JavaX-Caches/tmp_1868582922/main.java:51: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:55: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:59: error: class, interface, or enum expected
if (!name.endsWith("bot"))
^
/root/JavaX-Caches/tmp_1868582922/main.java:61: error: class, interface, or enum expected
ret name;
^
/root/JavaX-Caches/tmp_1868582922/main.java:62: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:66: error: class, interface, or enum expected
if (empty(name))
^
/root/JavaX-Caches/tmp_1868582922/main.java:68: error: class, interface, or enum expected
ret botifyName(name);
^
/root/JavaX-Caches/tmp_1868582922/main.java:69: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:73: error: class, interface, or enum expected
S name = getMyName();
^
/root/JavaX-Caches/tmp_1868582922/main.java:74: error: class, interface, or enum expected
print(">> " + (testRoom != null ? "TEST" : "") + " " + roomNr() + " > " + name + " > " + text);
^
/root/JavaX-Caches/tmp_1868582922/main.java:75: error: class, interface, or enum expected
if (testRoom != null)
^
/root/JavaX-Caches/tmp_1868582922/main.java:77: error: class, interface, or enum expected
else if (externalPoster != null)
^
/root/JavaX-Caches/tmp_1868582922/main.java:79: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1868582922/main.java:81: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:87: error: class, interface, or enum expected
if (l(line) > maxLineLength) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:89: error: class, interface, or enum expected
line = substring(line, 0, maxLineLength);
^
/root/JavaX-Caches/tmp_1868582922/main.java:90: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:92: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:97: error: class, interface, or enum expected
ret;
^
/root/JavaX-Caches/tmp_1868582922/main.java:98: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:101: error: class, interface, or enum expected
long lastID = last == null ? 0 : last.id;
^
/root/JavaX-Caches/tmp_1868582922/main.java:103: error: class, interface, or enum expected
if (externalSucker != null) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:105: error: class, interface, or enum expected
ret;
^
/root/JavaX-Caches/tmp_1868582922/main.java:106: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:109: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_1868582922/main.java:111: error: class, interface, or enum expected
addMsgs(newMsgs);
^
/root/JavaX-Caches/tmp_1868582922/main.java:112: error: class, interface, or enum expected
} finally {
^
/root/JavaX-Caches/tmp_1868582922/main.java:114: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:119: error: class, interface, or enum expected
if (debug_printIncoming)
^
/root/JavaX-Caches/tmp_1868582922/main.java:122: error: class, interface, or enum expected
for (ChatLine line : l) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:124: error: class, interface, or enum expected
msgs.add(line);
^
/root/JavaX-Caches/tmp_1868582922/main.java:125: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:146: error: not a statement
if (line == null) ret;
^
/root/JavaX-Caches/tmp_1868582922/main.java:158: error: class, interface, or enum expected
static L msgsFrom(MsgMarker marker) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:160: error: class, interface, or enum expected
ret msgsFrom(marker.idSeen);
^
/root/JavaX-Caches/tmp_1868582922/main.java:161: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:165: error: class, interface, or enum expected
while (i > 0 && msgs.get(i-1).id > idSeen)
^
/root/JavaX-Caches/tmp_1868582922/main.java:167: error: class, interface, or enum expected
L l = subList(msgs, i);
^
/root/JavaX-Caches/tmp_1868582922/main.java:168: error: class, interface, or enum expected
ret l;
^
/root/JavaX-Caches/tmp_1868582922/main.java:169: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:174: error: illegal start of type
*(S words) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:174: error: ';' expected
*(S words) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:179: error: ';' expected
ret dropWords_impl(s, wordSet);
^
/root/JavaX-Caches/tmp_1868582922/main.java:179: error: not a statement
ret dropWords_impl(s, wordSet);
^
/root/JavaX-Caches/tmp_1868582922/main.java:179: error: ';' expected
ret dropWords_impl(s, wordSet);
^
/root/JavaX-Caches/tmp_1868582922/main.java:179: error: not a statement
ret dropWords_impl(s, wordSet);
^
/root/JavaX-Caches/tmp_1868582922/main.java:179: error: ';' expected
ret dropWords_impl(s, wordSet);
^
/root/JavaX-Caches/tmp_1868582922/main.java:183: error: class, interface, or enum expected
static S getWordDropper_c1;
^
/root/JavaX-Caches/tmp_1868582922/main.java:184: error: class, interface, or enum expected
static S2S getWordDropper_c2;
^
/root/JavaX-Caches/tmp_1868582922/main.java:186: error: class, interface, or enum expected
static S2S getWordDropper(S wordsToDrop) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:189: error: class, interface, or enum expected
getWordDropper_c2 = new WordDropper(wordsToDrop);
^
/root/JavaX-Caches/tmp_1868582922/main.java:190: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:192: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:195: error: class, interface, or enum expected
static ChatLine matchQuestion_msg;
^
/root/JavaX-Caches/tmp_1868582922/main.java:197: error: class, interface, or enum expected
static boolean matchQuestion_dropping(S pat, S wordsToDrop) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:199: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:203: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:207: error: class, interface, or enum expected
matchQuestion_msg = null;
^
/root/JavaX-Caches/tmp_1868582922/main.java:208: error: class, interface, or enum expected
for (ChatLine line : msgsFrom(matchQuestion_seen)) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:210: error: class, interface, or enum expected
S text = preprocess(line.text, preprocessor);
^
/root/JavaX-Caches/tmp_1868582922/main.java:211: error: class, interface, or enum expected
if (debug_printIncoming)
^
/root/JavaX-Caches/tmp_1868582922/main.java:213: error: class, interface, or enum expected
if (match(pat, text, m)) {
^
/root/JavaX-Caches/tmp_1868582922/main.java:215: error: class, interface, or enum expected
ret true;
^
/root/JavaX-Caches/tmp_1868582922/main.java:216: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:219: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:223: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:227: error: class, interface, or enum expected
for (ChatLine line : msgsFrom(marker))
^
/root/JavaX-Caches/tmp_1868582922/main.java:230: error: class, interface, or enum expected
ret false;
^
/root/JavaX-Caches/tmp_1868582922/main.java:231: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:236: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1868582922/main.java:238: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:242: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:246: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1868582922/main.java:250: error: class, interface, or enum expected
if (loop_firstTime)
^
/root/JavaX-Caches/tmp_1868582922/main.java:252: error: class, interface, or enum expected
else if (testRoom != null)
^
/root/JavaX-Caches/tmp_1868582922/main.java:254: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1868582922/main.java:256: error: class, interface, or enum expected
ret true;
^
100 errors
only showing the first 100 errors, of 114 total; use -Xmaxerrs if you would like to see more