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

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

/root/JavaX-Caches/tmp_1854791350/main.java:1: error: class, interface, or enum expected sclass WeakCompactHashSet<A> extends AbstractSet<A> { ^ /root/JavaX-Caches/tmp_1854791350/main.java:3: error: class, interface, or enum expected new ReferenceQueue<A> queue; ^ /root/JavaX-Caches/tmp_1854791350/main.java:5: error: class, interface, or enum expected sclass MyWeakReference<A> extends WeakReference<A> { ^ /root/JavaX-Caches/tmp_1854791350/main.java:8: error: class, interface, or enum expected *(A o) { ^ /root/JavaX-Caches/tmp_1854791350/main.java:10: error: class, interface, or enum expected hash = o.hashCode(); ^ /root/JavaX-Caches/tmp_1854791350/main.java:11: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:15: error: class, interface, or enum expected hash = o.hashCode(); ^ /root/JavaX-Caches/tmp_1854791350/main.java:16: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:18: error: class, interface, or enum expected public int hashCode() { ret hash; } ^ /root/JavaX-Caches/tmp_1854791350/main.java:18: error: class, interface, or enum expected public int hashCode() { ret hash; } ^ /root/JavaX-Caches/tmp_1854791350/main.java:19: error: class, interface, or enum expected public bool equals(O o) { ^ /root/JavaX-Caches/tmp_1854791350/main.java:22: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:28: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:32: error: class, interface, or enum expected while ((ref = (MyWeakReference) queue.poll()) != null) ^ /root/JavaX-Caches/tmp_1854791350/main.java:34: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:36: error: class, interface, or enum expected public int size() { reap(); ret set.size(); } ^ /root/JavaX-Caches/tmp_1854791350/main.java:36: error: class, interface, or enum expected public int size() { reap(); ret set.size(); } ^ /root/JavaX-Caches/tmp_1854791350/main.java:36: error: class, interface, or enum expected public int size() { reap(); ret set.size(); } ^ /root/JavaX-Caches/tmp_1854791350/main.java:38: error: class, interface, or enum expected public Iterator<A> iterator() { ^ /root/JavaX-Caches/tmp_1854791350/main.java:39: error: class, interface, or enum expected final Iterator<MyWeakReference<A>> it = set.iterator(); ^ /root/JavaX-Caches/tmp_1854791350/main.java:40: error: class, interface, or enum expected ret iteratorFromFunction(() -> { ^ /root/JavaX-Caches/tmp_1854791350/main.java:43: error: class, interface, or enum expected A a = ref.get(); ^ /root/JavaX-Caches/tmp_1854791350/main.java:44: error: class, interface, or enum expected if (a != null) ret a; ^ /root/JavaX-Caches/tmp_1854791350/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:48: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_1854791350/main.java:49: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:51: error: class, interface, or enum expected public bool contains(O o) { ^ /root/JavaX-Caches/tmp_1854791350/main.java:53: error: class, interface, or enum expected ret set.contains(new MyWeakReference(o)); ^ /root/JavaX-Caches/tmp_1854791350/main.java:54: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:56: error: class, interface, or enum expected public bool add(A a) { ^ /root/JavaX-Caches/tmp_1854791350/main.java:58: error: class, interface, or enum expected ret set.add(new MyWeakReference(a, queue)); ^ /root/JavaX-Caches/tmp_1854791350/main.java:59: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:61: error: class, interface, or enum expected public bool remove(O o) { ^ /root/JavaX-Caches/tmp_1854791350/main.java:63: error: class, interface, or enum expected ret set.remove(new MyWeakReference(o)); ^ /root/JavaX-Caches/tmp_1854791350/main.java:64: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1854791350/main.java:68: error: class, interface, or enum expected MyWeakReference<A> ref = set.find(new MyWeakReference(o)); ^ /root/JavaX-Caches/tmp_1854791350/main.java:69: error: class, interface, or enum expected ret ref == null ? null : ref.get(); ^ /root/JavaX-Caches/tmp_1854791350/main.java:70: error: class, interface, or enum expected } ^ 38 errors