Wrote /root/JavaX-Caches/tmp_1422433206/main.java - 1397 bytes (written=1397, should be 1397)
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_639242114 /root/JavaX-Caches/tmp_1422433206/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1422433206/main.java:1: error: class, interface, or enum expected
sclass Test_ProbabilisticList {
^
/root/JavaX-Caches/tmp_1422433206/main.java:3: error: class, interface, or enum expected
new ProbabilisticList b;
^
/root/JavaX-Caches/tmp_1422433206/main.java:5: error: class, interface, or enum expected
int nProbabilities = 4;
^
/root/JavaX-Caches/tmp_1422433206/main.java:6: error: class, interface, or enum expected
int nObjects = 10;
^
/root/JavaX-Caches/tmp_1422433206/main.java:7: error: class, interface, or enum expected
int n = 1000;
^
/root/JavaX-Caches/tmp_1422433206/main.java:9: error: class, interface, or enum expected
WithProbability makeEntry() {
^
/root/JavaX-Caches/tmp_1422433206/main.java:13: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1422433206/main.java:19: error: class, interface, or enum expected
print("Adding " + e);
^
/root/JavaX-Caches/tmp_1422433206/main.java:21: error: class, interface, or enum expected
if (e.probability() > 0) // simulate default cut-off at probability 0
^
/root/JavaX-Caches/tmp_1422433206/main.java:25: error: class, interface, or enum expected
a.put(e.probability(), e!);
^
/root/JavaX-Caches/tmp_1422433206/main.java:26: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1422433206/main.java:30: error: class, interface, or enum expected
check();
^
/root/JavaX-Caches/tmp_1422433206/main.java:33: error: class, interface, or enum expected
e = makeEntry(); // probability doesn't matter
^
/root/JavaX-Caches/tmp_1422433206/main.java:34: error: class, interface, or enum expected
print("Removing " + e!);
^
/root/JavaX-Caches/tmp_1422433206/main.java:35: error: class, interface, or enum expected
a.remove(a.keyForValue(e!), e!);
^
/root/JavaX-Caches/tmp_1422433206/main.java:36: error: class, interface, or enum expected
b.remove(e);
^
/root/JavaX-Caches/tmp_1422433206/main.java:38: error: class, interface, or enum expected
check();
^
/root/JavaX-Caches/tmp_1422433206/main.java:39: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1422433206/main.java:44: error: class, interface, or enum expected
print(takeFirst(10, aEntries);
^
/root/JavaX-Caches/tmp_1422433206/main.java:45: error: class, interface, or enum expected
assertEquals(mapPairsToList(aEntries, (p, x) -> WithProbability(p, x)), asList(b.iterator());
^
/root/JavaX-Caches/tmp_1422433206/main.java:46: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1422433206/main.java:51: error: class, interface, or enum expected
}
^
22 errors