Wrote /root/JavaX-Caches/tmp_462259405/main.java - 1544 bytes (written=1544, should be 1544)
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_1213006092 /root/JavaX-Caches/tmp_462259405/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_462259405/main.java:2: error: class, interface, or enum expected
static void thinArbitraryDatedBackups(File dir, bool doIt) {
^
/root/JavaX-Caches/tmp_462259405/main.java:4: error: class, interface, or enum expected
new Map ageMap;
^
/root/JavaX-Caches/tmp_462259405/main.java:6: error: class, interface, or enum expected
Pattern pat = regexp("-(20\\d\\d)(\\d\\d)(\\d\\d)-(\\d\\d)");
^
/root/JavaX-Caches/tmp_462259405/main.java:7: error: class, interface, or enum expected
for (File f : listFilesNotDirs(dir)) {
^
/root/JavaX-Caches/tmp_462259405/main.java:9: error: class, interface, or enum expected
Matcher matcher = pat.matcher(s);
^
/root/JavaX-Caches/tmp_462259405/main.java:10: error: class, interface, or enum expected
continue unless matcher.find();
^
/root/JavaX-Caches/tmp_462259405/main.java:12: error: class, interface, or enum expected
int year = matcherInt(matcher, 1);
^
/root/JavaX-Caches/tmp_462259405/main.java:13: error: class, interface, or enum expected
int month = matcherInt(matcher, 2);
^
/root/JavaX-Caches/tmp_462259405/main.java:14: error: class, interface, or enum expected
int day = matcherInt(matcher, 3);
^
/root/JavaX-Caches/tmp_462259405/main.java:15: error: class, interface, or enum expected
int hour = matcherInt(matcher, 4);
^
/root/JavaX-Caches/tmp_462259405/main.java:16: error: class, interface, or enum expected
long time = timestampFromYMDH(year, month, day, hour);
^
/root/JavaX-Caches/tmp_462259405/main.java:17: error: class, interface, or enum expected
double age = ((now()-time)/1000.0/60/60/24;
^
/root/JavaX-Caches/tmp_462259405/main.java:19: error: class, interface, or enum expected
ageMap.put(f, age);
^
/root/JavaX-Caches/tmp_462259405/main.java:20: error: class, interface, or enum expected
files.add(f);
^
/root/JavaX-Caches/tmp_462259405/main.java:21: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_462259405/main.java:24: error: class, interface, or enum expected
sortByMap_inPlace(files, ageMap);
^
/root/JavaX-Caches/tmp_462259405/main.java:25: error: class, interface, or enum expected
double lastAge = -1;
^
/root/JavaX-Caches/tmp_462259405/main.java:26: error: class, interface, or enum expected
for (File f : files) {
^
/root/JavaX-Caches/tmp_462259405/main.java:28: error: class, interface, or enum expected
if (!thinArbitraryDatedBackups_shouldKeep(age, lastAge)) {
^
/root/JavaX-Caches/tmp_462259405/main.java:31: error: class, interface, or enum expected
if (doIt) {
^
/root/JavaX-Caches/tmp_462259405/main.java:33: error: class, interface, or enum expected
f.delete();
^
/root/JavaX-Caches/tmp_462259405/main.java:34: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_462259405/main.java:37: error: class, interface, or enum expected
lastAge = age;
^
/root/JavaX-Caches/tmp_462259405/main.java:38: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_462259405/main.java:42: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_462259405/main.java:47: error: class, interface, or enum expected
if (age <= 31 && age >= lastAge+1) true;
^
/root/JavaX-Caches/tmp_462259405/main.java:48: error: class, interface, or enum expected
if (age >= lastAge+7) true;
^
/root/JavaX-Caches/tmp_462259405/main.java:49: error: class, interface, or enum expected
false;
^
/root/JavaX-Caches/tmp_462259405/main.java:50: error: class, interface, or enum expected
}
^
29 errors