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

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

/root/JavaX-Caches/tmp_2122270755/main.java:21: error: class, interface, or enum expected sclass CompactHashMap<K, V> extends AbstractMap<K, V> { ^ /root/JavaX-Caches/tmp_2122270755/main.java:22: error: class, interface, or enum expected final static int INITIAL_SIZE = 0; ^ /root/JavaX-Caches/tmp_2122270755/main.java:23: error: class, interface, or enum expected final static double LOAD_FACTOR = 0.6; ^ /root/JavaX-Caches/tmp_2122270755/main.java:26: error: class, interface, or enum expected final static Object nullObject = new Object(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:34: error: class, interface, or enum expected final static Object deletedObject = new Object(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:35: error: class, interface, or enum expected int elements; ^ /root/JavaX-Caches/tmp_2122270755/main.java:36: error: class, interface, or enum expected int freecells; ^ /root/JavaX-Caches/tmp_2122270755/main.java:37: error: class, interface, or enum expected O[] table; // key, value, key, value, ... ^ /root/JavaX-Caches/tmp_2122270755/main.java:40: error: class, interface, or enum expected *() { ^ /root/JavaX-Caches/tmp_2122270755/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:46: error: class, interface, or enum expected elements = 0; ^ /root/JavaX-Caches/tmp_2122270755/main.java:47: error: class, interface, or enum expected freecells = tableSize(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:49: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:56: error: class, interface, or enum expected public synchronized int size() { ^ /root/JavaX-Caches/tmp_2122270755/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:63: error: class, interface, or enum expected public synchronized boolean isEmpty() { ^ /root/JavaX-Caches/tmp_2122270755/main.java:65: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:70: error: class, interface, or enum expected public synchronized void clear() { ^ /root/JavaX-Caches/tmp_2122270755/main.java:72: error: class, interface, or enum expected for (int ix = 0; ix < tableSize(); ix++) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:72: error: class, interface, or enum expected for (int ix = 0; ix < tableSize(); ix++) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:72: error: class, interface, or enum expected for (int ix = 0; ix < tableSize(); ix++) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:74: error: class, interface, or enum expected value(ix, null); ^ /root/JavaX-Caches/tmp_2122270755/main.java:75: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:78: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:83: error: class, interface, or enum expected public synchronized boolean containsKey(Object k) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:85: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:90: error: class, interface, or enum expected public synchronized boolean containsValue(Object v) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:94: error: class, interface, or enum expected for (int ix = 0; ix < tableSize(); ix++) ^ /root/JavaX-Caches/tmp_2122270755/main.java:94: error: class, interface, or enum expected for (int ix = 0; ix < tableSize(); ix++) ^ /root/JavaX-Caches/tmp_2122270755/main.java:94: error: class, interface, or enum expected for (int ix = 0; ix < tableSize(); ix++) ^ /root/JavaX-Caches/tmp_2122270755/main.java:98: error: class, interface, or enum expected return false; ^ /root/JavaX-Caches/tmp_2122270755/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:104: error: class, interface, or enum expected public synchronized Set<Entry<K, V>> entrySet() { ^ /root/JavaX-Caches/tmp_2122270755/main.java:106: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:112: error: class, interface, or enum expected public synchronized V remove(Object k) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:116: error: class, interface, or enum expected if (key(index) != null) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:121: error: class, interface, or enum expected key(index, deletedObject); ^ /root/JavaX-Caches/tmp_2122270755/main.java:122: error: class, interface, or enum expected value(index, deletedObject); ^ /root/JavaX-Caches/tmp_2122270755/main.java:124: error: class, interface, or enum expected elements--; ^ /root/JavaX-Caches/tmp_2122270755/main.java:125: error: class, interface, or enum expected return v; ^ /root/JavaX-Caches/tmp_2122270755/main.java:126: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_2122270755/main.java:129: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:135: error: class, interface, or enum expected public synchronized V put(K k, V v) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:139: error: class, interface, or enum expected int hash = k.hashCode(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:140: error: class, interface, or enum expected int index = 0; ^ /root/JavaX-Caches/tmp_2122270755/main.java:141: error: class, interface, or enum expected int deletedix = -1; ^ /root/JavaX-Caches/tmp_2122270755/main.java:143: error: class, interface, or enum expected if (table != null) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:145: error: class, interface, or enum expected int offset = 1; ^ /root/JavaX-Caches/tmp_2122270755/main.java:148: error: class, interface, or enum expected while (key(index) != null && ^ /root/JavaX-Caches/tmp_2122270755/main.java:157: error: class, interface, or enum expected index = ((index + offset) & 0x7FFFFFFF) % tableSize(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:158: error: class, interface, or enum expected offset = offset*2 + 1; ^ /root/JavaX-Caches/tmp_2122270755/main.java:160: error: class, interface, or enum expected if (offset == -1) ^ /root/JavaX-Caches/tmp_2122270755/main.java:162: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:169: error: class, interface, or enum expected if (table == null) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:171: error: class, interface, or enum expected key(0, k); ^ /root/JavaX-Caches/tmp_2122270755/main.java:172: error: class, interface, or enum expected value(0, v); ^ /root/JavaX-Caches/tmp_2122270755/main.java:173: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_2122270755/main.java:174: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:178: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_2122270755/main.java:181: error: class, interface, or enum expected key(index, k); ^ /root/JavaX-Caches/tmp_2122270755/main.java:182: error: class, interface, or enum expected value(index, v); ^ /root/JavaX-Caches/tmp_2122270755/main.java:185: error: class, interface, or enum expected if (1 - (freecells / (double) tableSize()) > LOAD_FACTOR) ^ /root/JavaX-Caches/tmp_2122270755/main.java:187: error: class, interface, or enum expected return null; ^ /root/JavaX-Caches/tmp_2122270755/main.java:188: error: class, interface, or enum expected } else { // was there already ^ /root/JavaX-Caches/tmp_2122270755/main.java:191: error: class, interface, or enum expected value(index, v); ^ /root/JavaX-Caches/tmp_2122270755/main.java:192: error: class, interface, or enum expected return oldv; ^ /root/JavaX-Caches/tmp_2122270755/main.java:193: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:201: error: class, interface, or enum expected O[] newTable = newCapacity == 0 ? null : new O[newCapacity*2]; ^ /root/JavaX-Caches/tmp_2122270755/main.java:203: error: class, interface, or enum expected for (int ix = 0; ix < oldCapacity; ix++) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:203: error: class, interface, or enum expected for (int ix = 0; ix < oldCapacity; ix++) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:203: error: class, interface, or enum expected for (int ix = 0; ix < oldCapacity; ix++) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:205: error: class, interface, or enum expected if (k == null || k == deletedObject) ^ /root/JavaX-Caches/tmp_2122270755/main.java:208: error: class, interface, or enum expected int hash = k.hashCode(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:209: error: class, interface, or enum expected int index = (hash & 0x7FFFFFFF) % newCapacity; ^ /root/JavaX-Caches/tmp_2122270755/main.java:210: error: class, interface, or enum expected int offset = 1; ^ /root/JavaX-Caches/tmp_2122270755/main.java:213: error: class, interface, or enum expected while(newTable[index*2] != null) { // no need to test for duplicates ^ /root/JavaX-Caches/tmp_2122270755/main.java:215: error: class, interface, or enum expected offset = offset*2 + 1; ^ /root/JavaX-Caches/tmp_2122270755/main.java:217: error: class, interface, or enum expected if (offset == -1) ^ /root/JavaX-Caches/tmp_2122270755/main.java:219: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:222: error: class, interface, or enum expected newTable[index*2+1] = value(ix); ^ /root/JavaX-Caches/tmp_2122270755/main.java:223: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:226: error: class, interface, or enum expected freecells = tableSize() - elements; ^ /root/JavaX-Caches/tmp_2122270755/main.java:227: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:233: error: class, interface, or enum expected public synchronized V get(O k) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:235: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:241: error: class, interface, or enum expected public synchronized Collection<V> values() { ^ /root/JavaX-Caches/tmp_2122270755/main.java:243: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:248: error: class, interface, or enum expected public synchronized Set<K> keySet() { ^ /root/JavaX-Caches/tmp_2122270755/main.java:250: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:254: error: class, interface, or enum expected final int findKeyIndex(O k) { ^ /root/JavaX-Caches/tmp_2122270755/main.java:258: error: class, interface, or enum expected if (table == null) ret 0; ^ /root/JavaX-Caches/tmp_2122270755/main.java:259: error: class, interface, or enum expected int hash = k.hashCode(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:260: error: class, interface, or enum expected int index = (hash & 0x7FFFFFFF) % tableSize(); ^ /root/JavaX-Caches/tmp_2122270755/main.java:261: error: class, interface, or enum expected int offset = 1; ^ /root/JavaX-Caches/tmp_2122270755/main.java:264: error: class, interface, or enum expected while(key(index) != null && ^ /root/JavaX-Caches/tmp_2122270755/main.java:268: error: class, interface, or enum expected offset = offset*2 + 1; ^ /root/JavaX-Caches/tmp_2122270755/main.java:270: error: class, interface, or enum expected if (offset == -1) ^ /root/JavaX-Caches/tmp_2122270755/main.java:272: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:274: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_2122270755/main.java:376: error: class, interface, or enum expected K key(int i) { ret table == null ?: (K) table[i*2]; } ^ 100 errors only showing the first 100 errors, of 105 total; use -Xmaxerrs if you would like to see more