Wrote /root/JavaX-Caches/tmp_878490501/main.java - 4305 bytes (written=4305, should be 4305)
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_165738280 /root/JavaX-Caches/tmp_878490501/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_878490501/main.java:3: error: class, interface, or enum expected
sbool tok_recordDecls_autoWithToList = true;
^
/root/JavaX-Caches/tmp_878490501/main.java:5: error: class, interface, or enum expected
static void tok_recordDecls(L tok) {
^
/root/JavaX-Caches/tmp_878490501/main.java:7: error: class, interface, or enum expected
bool re = false;
^
/root/JavaX-Caches/tmp_878490501/main.java:9: error: class, interface, or enum expected
jreplace(tok, "record > {", "record $2 extends $4 {");
^
/root/JavaX-Caches/tmp_878490501/main.java:10: error: class, interface, or enum expected
jreplace(tok, "record > <> {", "record $2 extends $4 $5 $6 $7 {");
^
/root/JavaX-Caches/tmp_878490501/main.java:12: error: class, interface, or enum expected
jreplace(tok, "record {", "record $2() {");
^
/root/JavaX-Caches/tmp_878490501/main.java:13: error: class, interface, or enum expected
jreplace(tok, "record implements", "record $2() implements");
^
/root/JavaX-Caches/tmp_878490501/main.java:14: error: class, interface, or enum expected
jreplace(tok, "record extends", "record $2() extends");
^
/root/JavaX-Caches/tmp_878490501/main.java:16: error: class, interface, or enum expected
while ((i = jfind_any(tok, "record (", "record <")) >= 0) {
^
/root/JavaX-Caches/tmp_878490501/main.java:18: error: class, interface, or enum expected
int argsTo = findCodeTokens(tok, argsFrom, false, ")");
^
/root/JavaX-Caches/tmp_878490501/main.java:19: error: class, interface, or enum expected
int idx = findCodeTokens(tok, argsTo, false, "{");
^
/root/JavaX-Caches/tmp_878490501/main.java:20: error: class, interface, or enum expected
ifdef tok_recordDecls_debug
^
/root/JavaX-Caches/tmp_878490501/main.java:22: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_878490501/main.java:24: error: class, interface, or enum expected
S name = tok.get(i+2);
^
/root/JavaX-Caches/tmp_878490501/main.java:26: error: class, interface, or enum expected
int iMod = tok_leftScanCustomModifiers(tok, i, addAllAndReturnCollection(litset("noeq", "flexeq", "noToString", "withToList", "transformable"), getJavaModifiers());
^
/root/JavaX-Caches/tmp_878490501/main.java:27: error: class, interface, or enum expected
Set mods = codeTokensAsSet(subList(tok, iMod-1, i));
^
/root/JavaX-Caches/tmp_878490501/main.java:28: error: class, interface, or enum expected
clearTokensExceptFromSet(tok, iMod, i-1, getJavaModifiers());
^
/root/JavaX-Caches/tmp_878490501/main.java:30: error: class, interface, or enum expected
bool withToList = mods.contains("withToList");
^
/root/JavaX-Caches/tmp_878490501/main.java:31: error: class, interface, or enum expected
withToList = withToList || tok_recordDecls_autoWithToList;
^
/root/JavaX-Caches/tmp_878490501/main.java:33: error: class, interface, or enum expected
new StringBuilder buf;
^
/root/JavaX-Caches/tmp_878490501/main.java:35: error: class, interface, or enum expected
L tArgs = subList(tok, argsFrom-1, argsTo);
^
/root/JavaX-Caches/tmp_878490501/main.java:36: error: class, interface, or enum expected
tok_typesAndNamesOfParams_keepModifiers.set(true);
^
/root/JavaX-Caches/tmp_878490501/main.java:37: error: class, interface, or enum expected
LPairS argsWithModifiers = tok_typesAndNamesOfParams(tArgs, typelessMeansObject := true);
^
/root/JavaX-Caches/tmp_878490501/main.java:39: error: class, interface, or enum expected
LPairS args = tok_typesAndNamesOfParams(tArgs, typelessMeansObject := true);
^
/root/JavaX-Caches/tmp_878490501/main.java:40: error: class, interface, or enum expected
L contents = subList(tok, idx+1, j);
^
/root/JavaX-Caches/tmp_878490501/main.java:41: error: class, interface, or enum expected
bool hasDefaultConstructor = tok_hasDefaultConstructor(contents, name);
^
/root/JavaX-Caches/tmp_878490501/main.java:45: error: class, interface, or enum expected
for (Pair p : argsWithModifiers)
^
/root/JavaX-Caches/tmp_878490501/main.java:48: error: class, interface, or enum expected
if (nempty(args) && !hasDefaultConstructor) buf.append("\n *() {}");
^
/root/JavaX-Caches/tmp_878490501/main.java:51: error: class, interface, or enum expected
S ctorHead = "\n *(" + joinWithComma(map(args,
^
/root/JavaX-Caches/tmp_878490501/main.java:54: error: class, interface, or enum expected
var comments = trimAll(getJavaLineCommentsWithoutNestedBlocks(contents));
^
/root/JavaX-Caches/tmp_878490501/main.java:55: error: class, interface, or enum expected
printVars(+ctorHead, +comments);
^
/root/JavaX-Caches/tmp_878490501/main.java:56: error: class, interface, or enum expected
if (!contains(comments, "!customConstructor")
^
/root/JavaX-Caches/tmp_878490501/main.java:62: error: class, interface, or enum expected
if (!mods.contains("noToString") && !(jfind(contents, "toString {") >= 0 || jfind(contents, "toString()") >= 0))
^
/root/JavaX-Caches/tmp_878490501/main.java:72: error: class, interface, or enum expected
if (!mods.contains("noeq")) {
^
/root/JavaX-Caches/tmp_878490501/main.java:75: error: class, interface, or enum expected
buf.append(tok_genEqualsAndHashCode(name, args, +flexEq));
^
/root/JavaX-Caches/tmp_878490501/main.java:76: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_878490501/main.java:81: error: class, interface, or enum expected
bool transformable = mods.contains("transformable");
^
/root/JavaX-Caches/tmp_878490501/main.java:82: error: class, interface, or enum expected
if (transformable)
^
/root/JavaX-Caches/tmp_878490501/main.java:85: error: class, interface, or enum expected
S interfaces = joinNemptiesWithComma(
^
/root/JavaX-Caches/tmp_878490501/main.java:89: error: class, interface, or enum expected
tok.set(idx, (empty(interfaces) ? ""
^
/root/JavaX-Caches/tmp_878490501/main.java:92: error: class, interface, or enum expected
ifdef tok_recordDecls_debug
^
/root/JavaX-Caches/tmp_878490501/main.java:94: error: class, interface, or enum expected
print("tok_recordDecls whole: " + join(tok));
^
/root/JavaX-Caches/tmp_878490501/main.java:95: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_878490501/main.java:97: error: class, interface, or enum expected
clearTokens(tok, argsFrom-2, argsTo+1);
^
/root/JavaX-Caches/tmp_878490501/main.java:98: error: class, interface, or enum expected
reTok(tok, i, idx+1);
^
/root/JavaX-Caches/tmp_878490501/main.java:101: error: class, interface, or enum expected
if (contains(tok_modifiersLeftOf(tok, i), "static"))
^
/root/JavaX-Caches/tmp_878490501/main.java:104: error: class, interface, or enum expected
ifdef tok_recordDecls_debug
^
/root/JavaX-Caches/tmp_878490501/main.java:106: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_878490501/main.java:108: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_878490501/main.java:110: error: class, interface, or enum expected
}
^
50 errors