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

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

/root/JavaX-Caches/tmp_539708519/main.java:1: error: class, interface, or enum expected !752 ^ /root/JavaX-Caches/tmp_539708519/main.java:3: error: illegal character: '#' !include #1002268 // Slack Bot ^ /root/JavaX-Caches/tmp_539708519/main.java:6: error: class, interface, or enum expected static S botUserName = "eleu_learns_to_think"; ^ /root/JavaX-Caches/tmp_539708519/main.java:7: error: class, interface, or enum expected static S actualBotUserName = "eleu"; // token user name ^ /root/JavaX-Caches/tmp_539708519/main.java:9: error: class, interface, or enum expected static boolean hotwire_over_bot = true; ^ /root/JavaX-Caches/tmp_539708519/main.java:11: error: class, interface, or enum expected static int maxAnswerLength = 1000, shortenTo = 200; ^ /root/JavaX-Caches/tmp_539708519/main.java:13: error: class, interface, or enum expected static L<S> botIDs; ^ /root/JavaX-Caches/tmp_539708519/main.java:14: error: class, interface, or enum expected static new L<Class> bots; ^ /root/JavaX-Caches/tmp_539708519/main.java:15: error: class, interface, or enum expected static new L<Class> privBots; // bots with an answerPriv method (privileged/private answering) ^ /root/JavaX-Caches/tmp_539708519/main.java:16: error: class, interface, or enum expected static new L<S> activeBots; ^ /root/JavaX-Caches/tmp_539708519/main.java:17: error: class, interface, or enum expected static Map<S, Class> botsByID = synchroTreeMap(); ^ /root/JavaX-Caches/tmp_539708519/main.java:20: error: class, interface, or enum expected static new ThreadLocal<S> userName; ^ /root/JavaX-Caches/tmp_539708519/main.java:21: error: class, interface, or enum expected static new ThreadLocal<S> dialogID; ^ /root/JavaX-Caches/tmp_539708519/main.java:22: error: class, interface, or enum expected static new ThreadLocal<S> actualURI; ^ /root/JavaX-Caches/tmp_539708519/main.java:24: error: class, interface, or enum expected static volatile boolean loaded; ^ /root/JavaX-Caches/tmp_539708519/main.java:26: error: class, interface, or enum expected static int webServerPort = 80; // set to 0 for no web serving ^ /root/JavaX-Caches/tmp_539708519/main.java:27: error: class, interface, or enum expected static long hitCount; ^ /root/JavaX-Caches/tmp_539708519/main.java:29: error: class, interface, or enum expected static new L<Map> history; // stores all processed user questions (not whole chat log) ^ /root/JavaX-Caches/tmp_539708519/main.java:31: error: class, interface, or enum expected p { ^ /root/JavaX-Caches/tmp_539708519/main.java:34: error: class, interface, or enum expected serveHttp(webServerPort); ^ /root/JavaX-Caches/tmp_539708519/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:39: error: class, interface, or enum expected reload(); ^ /root/JavaX-Caches/tmp_539708519/main.java:40: error: class, interface, or enum expected readLog(); ^ /root/JavaX-Caches/tmp_539708519/main.java:42: error: class, interface, or enum expected loaded = true; ^ /root/JavaX-Caches/tmp_539708519/main.java:43: error: class, interface, or enum expected slackBotLoop(); ^ /root/JavaX-Caches/tmp_539708519/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:49: error: class, interface, or enum expected if (match("reboot", s)) { ^ /root/JavaX-Caches/tmp_539708519/main.java:52: error: class, interface, or enum expected nohupJavax(getProgramID()); ^ /root/JavaX-Caches/tmp_539708519/main.java:53: error: class, interface, or enum expected System.exit(100); ^ /root/JavaX-Caches/tmp_539708519/main.java:54: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:59: error: class, interface, or enum expected time { reload(); } ^ /root/JavaX-Caches/tmp_539708519/main.java:61: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:65: error: class, interface, or enum expected ret "Bot " + formatSnippetID(m.unq(0)) + " reloaded."; ^ /root/JavaX-Caches/tmp_539708519/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:70: error: class, interface, or enum expected L<S> inactiveBots = diff(botIDs, activeBots); ^ /root/JavaX-Caches/tmp_539708519/main.java:71: error: class, interface, or enum expected if (!inactiveBots.isEmpty()) ^ /root/JavaX-Caches/tmp_539708519/main.java:73: error: class, interface, or enum expected ret answer; ^ /root/JavaX-Caches/tmp_539708519/main.java:74: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:79: error: class, interface, or enum expected ret callStaticAnswerMethod(bots, s); ^ /root/JavaX-Caches/tmp_539708519/main.java:80: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:84: error: class, interface, or enum expected S a = "ERREUR"; ^ /root/JavaX-Caches/tmp_539708519/main.java:85: error: class, interface, or enum expected try { ^ /root/JavaX-Caches/tmp_539708519/main.java:87: error: class, interface, or enum expected } finally { ^ /root/JavaX-Caches/tmp_539708519/main.java:91: error: class, interface, or enum expected Map map = litmap("startTime", time, "duration", x-time, ^ /root/JavaX-Caches/tmp_539708519/main.java:93: error: class, interface, or enum expected printList(answerPriv(format("log timing *", structure(map)))); ^ /root/JavaX-Caches/tmp_539708519/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:102: error: class, interface, or enum expected for (Class bot : privBots) pcall { ^ /root/JavaX-Caches/tmp_539708519/main.java:104: error: class, interface, or enum expected if (!empty(a)) ^ /root/JavaX-Caches/tmp_539708519/main.java:106: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:108: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:113: error: class, interface, or enum expected Map data = litmap("realtime", now(), "question", probableQuestion, "answer", answer, "answertime", answerTime, "feedback", feedback, "score", score); ^ /root/JavaX-Caches/tmp_539708519/main.java:114: error: class, interface, or enum expected print("Recording feedback: " + data); ^ /root/JavaX-Caches/tmp_539708519/main.java:115: error: class, interface, or enum expected logQuoted(new File(programDir(), "feedback-log"), structure(data)); ^ /root/JavaX-Caches/tmp_539708519/main.java:116: error: class, interface, or enum expected logQuoted(new File(programDir(), "memory-log"), structure(data)); ^ /root/JavaX-Caches/tmp_539708519/main.java:117: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:121: error: class, interface, or enum expected generalReleaseBots = or((L<S>) loadVariableDefinition("generalReleaseBots"), generalReleaseBots); ^ /root/JavaX-Caches/tmp_539708519/main.java:122: error: class, interface, or enum expected botIDs.addAll(generalReleaseBots); ^ /root/JavaX-Caches/tmp_539708519/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:128: error: class, interface, or enum expected cleanUp(bots); ^ /root/JavaX-Caches/tmp_539708519/main.java:129: error: class, interface, or enum expected activeBots = new ArrayList(); ^ /root/JavaX-Caches/tmp_539708519/main.java:130: error: class, interface, or enum expected privBots = new ArrayList(); ^ /root/JavaX-Caches/tmp_539708519/main.java:131: error: class, interface, or enum expected botsByID.clear(); ^ /root/JavaX-Caches/tmp_539708519/main.java:132: error: class, interface, or enum expected for (S botID : botIDs) ^ /root/JavaX-Caches/tmp_539708519/main.java:135: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:140: error: class, interface, or enum expected S parsedID = "" + parseSnippetID(botID); ^ /root/JavaX-Caches/tmp_539708519/main.java:141: error: class, interface, or enum expected Class bot = botsByID.get(parsedID); ^ /root/JavaX-Caches/tmp_539708519/main.java:142: error: class, interface, or enum expected if (bot != null) { ^ /root/JavaX-Caches/tmp_539708519/main.java:144: error: class, interface, or enum expected botsByID.remove(parsedID); ^ /root/JavaX-Caches/tmp_539708519/main.java:145: error: class, interface, or enum expected activeBots.remove(formatSnippetID(botID)); ^ /root/JavaX-Caches/tmp_539708519/main.java:146: error: class, interface, or enum expected bots.remove(bot); ^ /root/JavaX-Caches/tmp_539708519/main.java:147: error: class, interface, or enum expected privBots.remove(bot); ^ /root/JavaX-Caches/tmp_539708519/main.java:148: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:150: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:154: error: class, interface, or enum expected Class c = hotwire_over_bot ? hotwire_overBot(botID) : hotwire(botID); ^ /root/JavaX-Caches/tmp_539708519/main.java:155: error: class, interface, or enum expected setOpt(c, "mainBot", getMainClass()); ^ /root/JavaX-Caches/tmp_539708519/main.java:156: error: class, interface, or enum expected callMain(c); ^ /root/JavaX-Caches/tmp_539708519/main.java:157: error: class, interface, or enum expected bots.add(c); ^ /root/JavaX-Caches/tmp_539708519/main.java:158: error: class, interface, or enum expected activeBots.add(formatSnippetID(botID)); // only if loading doesn't fail ^ /root/JavaX-Caches/tmp_539708519/main.java:159: error: class, interface, or enum expected botsByID.put("" + parseSnippetID(botID), c); ^ /root/JavaX-Caches/tmp_539708519/main.java:160: error: class, interface, or enum expected if (hasMethodNamed(c, "answerPriv")) ^ /root/JavaX-Caches/tmp_539708519/main.java:162: error: class, interface, or enum expected print("Loaded bot: " + botID + ", bots now: " + l(activeBots)); ^ /root/JavaX-Caches/tmp_539708519/main.java:163: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:168: error: class, interface, or enum expected ++hitCount; ^ /root/JavaX-Caches/tmp_539708519/main.java:169: error: class, interface, or enum expected saveLocally("hitCount"); ^ /root/JavaX-Caches/tmp_539708519/main.java:170: error: class, interface, or enum expected actualURI.set(uri); ^ /root/JavaX-Caches/tmp_539708519/main.java:171: error: class, interface, or enum expected uri = dropPrefixMandatory("/", uri); ^ /root/JavaX-Caches/tmp_539708519/main.java:172: error: class, interface, or enum expected if (!loaded) ^ /root/JavaX-Caches/tmp_539708519/main.java:174: error: class, interface, or enum expected if (eq(uri, "")) ^ /root/JavaX-Caches/tmp_539708519/main.java:176: error: class, interface, or enum expected if (eq(uri, "favicon.ico")) ^ /root/JavaX-Caches/tmp_539708519/main.java:180: error: class, interface, or enum expected O visitorsBot = getBot("#1002157"); ^ /root/JavaX-Caches/tmp_539708519/main.java:181: error: class, interface, or enum expected if (visitorsBot != null) { ^ /root/JavaX-Caches/tmp_539708519/main.java:183: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:186: error: class, interface, or enum expected S firstPart = i >= 0 ? uri.substring(0, i) : uri; ^ /root/JavaX-Caches/tmp_539708519/main.java:187: error: class, interface, or enum expected S rest = i >= 0 ? substr(uri, i) : "/"; // rest always starts with "/" ^ /root/JavaX-Caches/tmp_539708519/main.java:188: error: class, interface, or enum expected ret serveBot(firstPart, rest, parms); ^ /root/JavaX-Caches/tmp_539708519/main.java:189: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_539708519/main.java:193: error: class, interface, or enum expected boolean raw = subUri.equals("/raw") || subUri.startsWith("/raw/"); ^ /root/JavaX-Caches/tmp_539708519/main.java:194: error: class, interface, or enum expected if (raw) { ^ 100 errors only showing the first 100 errors, of 166 total; use -Xmaxerrs if you would like to see more