Wrote /root/JavaX-Caches/tmp_126844314/main.java - 3082 bytes (written=3082, should be 3082)
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_661010836 /root/JavaX-Caches/tmp_126844314/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_126844314/main.java:4: error: class, interface, or enum expected
sclass FileBasedLock implements AutoCloseable {
^
/root/JavaX-Caches/tmp_126844314/main.java:6: error: class, interface, or enum expected
double timeout = 60.0; // in seconds. refresh happens twice as often
^
/root/JavaX-Caches/tmp_126844314/main.java:7: error: class, interface, or enum expected
bool verbose;
^
/root/JavaX-Caches/tmp_126844314/main.java:8: error: class, interface, or enum expected
bool haveLock;
^
/root/JavaX-Caches/tmp_126844314/main.java:9: error: class, interface, or enum expected
java.util.Timer touchTimer;
^
/root/JavaX-Caches/tmp_126844314/main.java:12: error: class, interface, or enum expected
settable S contentsForLockFile;
^
/root/JavaX-Caches/tmp_126844314/main.java:14: error: class, interface, or enum expected
*() {}
^
/root/JavaX-Caches/tmp_126844314/main.java:22: error: class, interface, or enum expected
if (fileExists(lockFile)) {
^
/root/JavaX-Caches/tmp_126844314/main.java:24: error: class, interface, or enum expected
double remaining = timeout-age;
^
/root/JavaX-Caches/tmp_126844314/main.java:25: error: class, interface, or enum expected
print("Lock file age: " + lockFile + ": " + iround(age) + " s"
^
/root/JavaX-Caches/tmp_126844314/main.java:30: error: class, interface, or enum expected
if (remaining <= 0) {
^
/root/JavaX-Caches/tmp_126844314/main.java:32: error: class, interface, or enum expected
deleteFile(lockFile);
^
/root/JavaX-Caches/tmp_126844314/main.java:33: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:40: error: class, interface, or enum expected
java.nio.file.Files.createFile(toPath(lockFile));
^
/root/JavaX-Caches/tmp_126844314/main.java:41: error: class, interface, or enum expected
print("Created lock file: " + lockFile);
^
/root/JavaX-Caches/tmp_126844314/main.java:44: error: class, interface, or enum expected
if (nempty(contentsForLockFile))
^
/root/JavaX-Caches/tmp_126844314/main.java:47: error: class, interface, or enum expected
acquired();
^
/root/JavaX-Caches/tmp_126844314/main.java:48: error: class, interface, or enum expected
true;
^
/root/JavaX-Caches/tmp_126844314/main.java:49: error: class, interface, or enum expected
} catch e {
^
/root/JavaX-Caches/tmp_126844314/main.java:51: error: class, interface, or enum expected
false;
^
/root/JavaX-Caches/tmp_126844314/main.java:52: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:57: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:61: error: class, interface, or enum expected
startTouchTimer();
^
/root/JavaX-Caches/tmp_126844314/main.java:62: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:66: error: class, interface, or enum expected
writeContents();
^
/root/JavaX-Caches/tmp_126844314/main.java:67: error: class, interface, or enum expected
acquired();
^
/root/JavaX-Caches/tmp_126844314/main.java:68: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:72: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:77: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:81: error: class, interface, or enum expected
double interval = timeout/2;
^
/root/JavaX-Caches/tmp_126844314/main.java:82: error: class, interface, or enum expected
touchTimer = doEvery(interval, r doTouch);
^
/root/JavaX-Caches/tmp_126844314/main.java:83: error: class, interface, or enum expected
if (verbose) print("Touch timer started for " + lockFile + " (" + interval + "s)");
^
/root/JavaX-Caches/tmp_126844314/main.java:84: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:90: error: class, interface, or enum expected
touchFile(lockFile);
^
/root/JavaX-Caches/tmp_126844314/main.java:91: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:94: error: class, interface, or enum expected
public synchronized void close() pcall {
^
/root/JavaX-Caches/tmp_126844314/main.java:96: error: class, interface, or enum expected
if (haveLock) {
^
/root/JavaX-Caches/tmp_126844314/main.java:98: error: class, interface, or enum expected
if (verbose) print("Deleting lock file: " + lockFile);
^
/root/JavaX-Caches/tmp_126844314/main.java:99: error: class, interface, or enum expected
deleteFile(lockFile);
^
/root/JavaX-Caches/tmp_126844314/main.java:100: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:105: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:110: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:114: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_126844314/main.java:118: error: class, interface, or enum expected
}
^
44 errors