Wrote /root/JavaX-Caches/tmp_410828719/main.java - 9963 bytes (written=9963, should be 9963)
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_14143146 /root/JavaX-Caches/tmp_410828719/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_410828719/main.java:25: error: class, interface, or enum expected
sclass CompactHashMap extends CompactAbstractMap {
^
/root/JavaX-Caches/tmp_410828719/main.java:26: error: class, interface, or enum expected
final static int INITIAL_SIZE = 3;
^
/root/JavaX-Caches/tmp_410828719/main.java:27: error: class, interface, or enum expected
final static double LOAD_FACTOR = 0.6;
^
/root/JavaX-Caches/tmp_410828719/main.java:30: error: class, interface, or enum expected
final static Object nullObject = new Object();
^
/root/JavaX-Caches/tmp_410828719/main.java:38: error: class, interface, or enum expected
final static Object deletedObject = new Object();
^
/root/JavaX-Caches/tmp_410828719/main.java:39: error: class, interface, or enum expected
int elements;
^
/root/JavaX-Caches/tmp_410828719/main.java:40: error: class, interface, or enum expected
int freecells;
^
/root/JavaX-Caches/tmp_410828719/main.java:41: error: class, interface, or enum expected
O[] table; // key, value, key, value, ...
^
/root/JavaX-Caches/tmp_410828719/main.java:44: error: class, interface, or enum expected
*() {
^
/root/JavaX-Caches/tmp_410828719/main.java:46: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:50: error: class, interface, or enum expected
elements = 0;
^
/root/JavaX-Caches/tmp_410828719/main.java:51: error: class, interface, or enum expected
freecells = tableSize();
^
/root/JavaX-Caches/tmp_410828719/main.java:53: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:58: error: class, interface, or enum expected
if (map != null) putAll(map);
^
/root/JavaX-Caches/tmp_410828719/main.java:59: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:66: error: class, interface, or enum expected
public synchronized int size() {
^
/root/JavaX-Caches/tmp_410828719/main.java:68: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:73: error: class, interface, or enum expected
public synchronized boolean isEmpty() {
^
/root/JavaX-Caches/tmp_410828719/main.java:75: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:80: error: class, interface, or enum expected
public synchronized void clear() {
^
/root/JavaX-Caches/tmp_410828719/main.java:82: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++) {
^
/root/JavaX-Caches/tmp_410828719/main.java:82: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++) {
^
/root/JavaX-Caches/tmp_410828719/main.java:82: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++) {
^
/root/JavaX-Caches/tmp_410828719/main.java:84: error: class, interface, or enum expected
value(ix, null);
^
/root/JavaX-Caches/tmp_410828719/main.java:85: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:88: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:93: error: class, interface, or enum expected
public synchronized boolean containsKey(Object k) {
^
/root/JavaX-Caches/tmp_410828719/main.java:95: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:100: error: class, interface, or enum expected
public synchronized boolean containsValue(Object v) {
^
/root/JavaX-Caches/tmp_410828719/main.java:104: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++)
^
/root/JavaX-Caches/tmp_410828719/main.java:104: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++)
^
/root/JavaX-Caches/tmp_410828719/main.java:104: error: class, interface, or enum expected
for (int ix = 0; ix < tableSize(); ix++)
^
/root/JavaX-Caches/tmp_410828719/main.java:108: error: class, interface, or enum expected
return false;
^
/root/JavaX-Caches/tmp_410828719/main.java:109: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:114: error: class, interface, or enum expected
public synchronized Set> entrySet() {
^
/root/JavaX-Caches/tmp_410828719/main.java:116: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:122: error: class, interface, or enum expected
public synchronized V remove(Object k) {
^
/root/JavaX-Caches/tmp_410828719/main.java:126: error: class, interface, or enum expected
if (key(index) != null) {
^
/root/JavaX-Caches/tmp_410828719/main.java:131: error: class, interface, or enum expected
key(index, deletedObject);
^
/root/JavaX-Caches/tmp_410828719/main.java:132: error: class, interface, or enum expected
value(index, deletedObject);
^
/root/JavaX-Caches/tmp_410828719/main.java:134: error: class, interface, or enum expected
elements--;
^
/root/JavaX-Caches/tmp_410828719/main.java:135: error: class, interface, or enum expected
return v;
^
/root/JavaX-Caches/tmp_410828719/main.java:136: error: class, interface, or enum expected
} else
^
/root/JavaX-Caches/tmp_410828719/main.java:139: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:145: error: class, interface, or enum expected
public synchronized V put(K k, V v) {
^
/root/JavaX-Caches/tmp_410828719/main.java:149: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_410828719/main.java:150: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % tableSize();
^
/root/JavaX-Caches/tmp_410828719/main.java:151: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_410828719/main.java:152: error: class, interface, or enum expected
int deletedix = -1;
^
/root/JavaX-Caches/tmp_410828719/main.java:155: error: class, interface, or enum expected
while(key(index) != null &&
^
/root/JavaX-Caches/tmp_410828719/main.java:164: error: class, interface, or enum expected
index = ((index + offset) & 0x7FFFFFFF) % tableSize();
^
/root/JavaX-Caches/tmp_410828719/main.java:165: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_410828719/main.java:167: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_410828719/main.java:169: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:174: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_410828719/main.java:178: error: class, interface, or enum expected
elements++;
^
/root/JavaX-Caches/tmp_410828719/main.java:180: error: class, interface, or enum expected
key(index, k);
^
/root/JavaX-Caches/tmp_410828719/main.java:181: error: class, interface, or enum expected
value(index, v);
^
/root/JavaX-Caches/tmp_410828719/main.java:184: error: class, interface, or enum expected
if (1 - (freecells / (double) tableSize()) > LOAD_FACTOR)
^
/root/JavaX-Caches/tmp_410828719/main.java:186: error: class, interface, or enum expected
return null;
^
/root/JavaX-Caches/tmp_410828719/main.java:187: error: class, interface, or enum expected
} else { // was there already
^
/root/JavaX-Caches/tmp_410828719/main.java:190: error: class, interface, or enum expected
value(index, v);
^
/root/JavaX-Caches/tmp_410828719/main.java:191: error: class, interface, or enum expected
return oldv;
^
/root/JavaX-Caches/tmp_410828719/main.java:192: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:200: error: class, interface, or enum expected
O[] newTable = new Object[newCapacity*2];
^
/root/JavaX-Caches/tmp_410828719/main.java:202: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_410828719/main.java:202: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_410828719/main.java:202: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_410828719/main.java:204: error: class, interface, or enum expected
if (k == null || k == deletedObject)
^
/root/JavaX-Caches/tmp_410828719/main.java:207: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_410828719/main.java:208: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % newCapacity;
^
/root/JavaX-Caches/tmp_410828719/main.java:209: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_410828719/main.java:212: error: class, interface, or enum expected
while(newTable[index*2] != null) { // no need to test for duplicates
^
/root/JavaX-Caches/tmp_410828719/main.java:214: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_410828719/main.java:216: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_410828719/main.java:218: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:221: error: class, interface, or enum expected
newTable[index*2+1] = value(ix);
^
/root/JavaX-Caches/tmp_410828719/main.java:222: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:225: error: class, interface, or enum expected
freecells = tableSize() - elements;
^
/root/JavaX-Caches/tmp_410828719/main.java:226: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:232: error: class, interface, or enum expected
public synchronized V get(Object k) {
^
/root/JavaX-Caches/tmp_410828719/main.java:234: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:240: error: class, interface, or enum expected
public synchronized Collection values() {
^
/root/JavaX-Caches/tmp_410828719/main.java:242: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:247: error: class, interface, or enum expected
public synchronized Set keySet() {
^
/root/JavaX-Caches/tmp_410828719/main.java:249: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:253: error: class, interface, or enum expected
final int findKeyIndex(Object k) {
^
/root/JavaX-Caches/tmp_410828719/main.java:257: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_410828719/main.java:258: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % tableSize();
^
/root/JavaX-Caches/tmp_410828719/main.java:259: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_410828719/main.java:262: error: class, interface, or enum expected
while(key(index) != null &&
^
/root/JavaX-Caches/tmp_410828719/main.java:266: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_410828719/main.java:268: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_410828719/main.java:270: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:272: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_410828719/main.java:374: error: class, interface, or enum expected
K key(int i) { ret (K) table[i*2]; }
^
/root/JavaX-Caches/tmp_410828719/main.java:374: error: class, interface, or enum expected
K key(int i) { ret (K) table[i*2]; }
^
/root/JavaX-Caches/tmp_410828719/main.java:375: error: class, interface, or enum expected
void key(int i, O key) { table[i*2] = key; }
^
/root/JavaX-Caches/tmp_410828719/main.java:376: error: class, interface, or enum expected
V value(int i) { ret (V) table[i*2+1]; }
^
/root/JavaX-Caches/tmp_410828719/main.java:377: error: class, interface, or enum expected
void value(int i, O value) { table[i*2+1] = value; }
^
100 errors
only showing the first 100 errors, of 101 total; use -Xmaxerrs if you would like to see more