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

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

/root/JavaX-Caches/tmp_397141735/main.java:2: error: class, interface, or enum expected sclass WeakIdentityHashMap<K, V> implements Map<K, V> { ^ /root/JavaX-Caches/tmp_397141735/main.java:3: error: class, interface, or enum expected private final ReferenceQueue<K> queue = new ReferenceQueue<K>(); ^ /root/JavaX-Caches/tmp_397141735/main.java:4: error: class, interface, or enum expected private Map<IdentityWeakReference, V> backingStore ^ /root/JavaX-Caches/tmp_397141735/main.java:7: error: class, interface, or enum expected *() { ^ /root/JavaX-Caches/tmp_397141735/main.java:9: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:11: error: class, interface, or enum expected public synchronized void clear() { ^ /root/JavaX-Caches/tmp_397141735/main.java:13: error: class, interface, or enum expected reap(); ^ /root/JavaX-Caches/tmp_397141735/main.java:14: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:16: error: class, interface, or enum expected public synchronized boolean containsKey(Object key) { ^ /root/JavaX-Caches/tmp_397141735/main.java:18: error: class, interface, or enum expected return backingStore.containsKey(new IdentityWeakReference(key)); ^ /root/JavaX-Caches/tmp_397141735/main.java:19: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:21: error: class, interface, or enum expected public synchronized boolean containsValue(Object value) { ^ /root/JavaX-Caches/tmp_397141735/main.java:23: error: class, interface, or enum expected return backingStore.containsValue(value); ^ /root/JavaX-Caches/tmp_397141735/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:26: error: class, interface, or enum expected public synchronized Set<Map.Entry<K, V>> entrySet() { ^ /root/JavaX-Caches/tmp_397141735/main.java:28: error: class, interface, or enum expected Set<Map.Entry<K, V>> ret = new HashSet<Map.Entry<K, V>>(); ^ /root/JavaX-Caches/tmp_397141735/main.java:29: error: class, interface, or enum expected for (Map.Entry<IdentityWeakReference, V> ref : backingStore.entrySet()) { ^ /root/JavaX-Caches/tmp_397141735/main.java:30: error: class, interface, or enum expected final K key = ref.getKey().get(); ^ /root/JavaX-Caches/tmp_397141735/main.java:31: error: class, interface, or enum expected final V value = ref.getValue(); ^ /root/JavaX-Caches/tmp_397141735/main.java:32: error: class, interface, or enum expected Map.Entry<K, V> entry = new Map.Entry<K, V>() { ^ /root/JavaX-Caches/tmp_397141735/main.java:33: error: class, interface, or enum expected public synchronized K getKey() { ^ /root/JavaX-Caches/tmp_397141735/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:36: error: class, interface, or enum expected public synchronized V getValue() { ^ /root/JavaX-Caches/tmp_397141735/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:39: error: class, interface, or enum expected public synchronized V setValue(V value) { ^ /root/JavaX-Caches/tmp_397141735/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:43: error: class, interface, or enum expected ret.add(entry); ^ /root/JavaX-Caches/tmp_397141735/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:48: error: class, interface, or enum expected public synchronized Set<K> keySet() { ^ /root/JavaX-Caches/tmp_397141735/main.java:50: error: class, interface, or enum expected new IdentityHashMap<K, Bool> map; ^ /root/JavaX-Caches/tmp_397141735/main.java:51: error: class, interface, or enum expected for (IdentityWeakReference ref : backingStore.keySet()) { ^ /root/JavaX-Caches/tmp_397141735/main.java:53: error: class, interface, or enum expected if (k != null) map.put(k, Bool.TRUE); ^ /root/JavaX-Caches/tmp_397141735/main.java:54: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:58: error: class, interface, or enum expected public synchronized boolean equals(Object o) { ^ /root/JavaX-Caches/tmp_397141735/main.java:61: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:63: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:65: error: class, interface, or enum expected public synchronized V get(Object key) { ^ /root/JavaX-Caches/tmp_397141735/main.java:67: error: class, interface, or enum expected return backingStore.get(new IdentityWeakReference(key)); ^ /root/JavaX-Caches/tmp_397141735/main.java:68: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:71: error: class, interface, or enum expected public synchronized V put(K key, V value) { ^ /root/JavaX-Caches/tmp_397141735/main.java:73: error: class, interface, or enum expected return backingStore.put(new IdentityWeakReference(key), value); ^ /root/JavaX-Caches/tmp_397141735/main.java:74: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:76: error: class, interface, or enum expected public synchronized int hashCode() { ^ /root/JavaX-Caches/tmp_397141735/main.java:78: error: class, interface, or enum expected return backingStore.hashCode(); ^ /root/JavaX-Caches/tmp_397141735/main.java:79: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:80: error: class, interface, or enum expected public synchronized boolean isEmpty() { ^ /root/JavaX-Caches/tmp_397141735/main.java:82: error: class, interface, or enum expected return backingStore.isEmpty(); ^ /root/JavaX-Caches/tmp_397141735/main.java:83: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:84: error: class, interface, or enum expected public synchronized void putAll(Map t) { ^ /root/JavaX-Caches/tmp_397141735/main.java:86: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:90: error: class, interface, or enum expected public synchronized V remove(Object key) { ^ /root/JavaX-Caches/tmp_397141735/main.java:92: error: class, interface, or enum expected return backingStore.remove(new IdentityWeakReference(key)); ^ /root/JavaX-Caches/tmp_397141735/main.java:93: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:94: error: class, interface, or enum expected public synchronized int size() { ^ /root/JavaX-Caches/tmp_397141735/main.java:96: error: class, interface, or enum expected return backingStore.size(); ^ /root/JavaX-Caches/tmp_397141735/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:98: error: class, interface, or enum expected public synchronized Collection<V> values() { ^ /root/JavaX-Caches/tmp_397141735/main.java:100: error: class, interface, or enum expected return backingStore.values(); ^ /root/JavaX-Caches/tmp_397141735/main.java:101: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:106: error: class, interface, or enum expected while (zombie != null) { ^ /root/JavaX-Caches/tmp_397141735/main.java:108: error: class, interface, or enum expected ifdef WeakIdentityHashMap_debug ^ /root/JavaX-Caches/tmp_397141735/main.java:110: error: class, interface, or enum expected endifdef ^ /root/JavaX-Caches/tmp_397141735/main.java:112: error: class, interface, or enum expected zombie = queue.poll(); ^ /root/JavaX-Caches/tmp_397141735/main.java:113: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_397141735/main.java:143: error: class, interface, or enum expected } ^ 67 errors