Wrote /root/JavaX-Caches/tmp_1861406603/main.java - 10675 bytes (written=10675, should be 10675)
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_1240719514 /root/JavaX-Caches/tmp_1861406603/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1861406603/main.java:21: error: class, interface, or enum expected
sclass CompactPairKeyHashMap extends AbstractMap, V> {
^
/root/JavaX-Caches/tmp_1861406603/main.java:22: error: class, interface, or enum expected
final static int INITIAL_SIZE = 3;
^
/root/JavaX-Caches/tmp_1861406603/main.java:23: error: class, interface, or enum expected
final static double LOAD_FACTOR = 0.6;
^
/root/JavaX-Caches/tmp_1861406603/main.java:26: error: class, interface, or enum expected
final static Object nullObject = new Object();
^
/root/JavaX-Caches/tmp_1861406603/main.java:34: error: class, interface, or enum expected
final static Object deletedObject = new Object();
^
/root/JavaX-Caches/tmp_1861406603/main.java:35: error: class, interface, or enum expected
int elements;
^
/root/JavaX-Caches/tmp_1861406603/main.java:36: error: class, interface, or enum expected
int freecells;
^
/root/JavaX-Caches/tmp_1861406603/main.java:37: error: class, interface, or enum expected
K[] keys1;
^
/root/JavaX-Caches/tmp_1861406603/main.java:38: error: class, interface, or enum expected
K[] keys2;
^
/root/JavaX-Caches/tmp_1861406603/main.java:39: error: class, interface, or enum expected
V[] values; // object at pos x corresponds to key at pos x
^
/root/JavaX-Caches/tmp_1861406603/main.java:40: error: class, interface, or enum expected
int modCount;
^
/root/JavaX-Caches/tmp_1861406603/main.java:42: error: class, interface, or enum expected
*() {
^
/root/JavaX-Caches/tmp_1861406603/main.java:44: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:48: error: class, interface, or enum expected
keys2 = (K[]) new Object[(size==0 ? 1 : size)];
^
/root/JavaX-Caches/tmp_1861406603/main.java:49: error: class, interface, or enum expected
values = (V[]) new Object[(size==0 ? 1 : size)];
^
/root/JavaX-Caches/tmp_1861406603/main.java:50: error: class, interface, or enum expected
elements = 0;
^
/root/JavaX-Caches/tmp_1861406603/main.java:51: error: class, interface, or enum expected
freecells = keys1.length;
^
/root/JavaX-Caches/tmp_1861406603/main.java:52: error: class, interface, or enum expected
modCount = 0;
^
/root/JavaX-Caches/tmp_1861406603/main.java:53: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:60: error: class, interface, or enum expected
public synchronized int size() {
^
/root/JavaX-Caches/tmp_1861406603/main.java:62: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:67: error: class, interface, or enum expected
public synchronized boolean isEmpty() {
^
/root/JavaX-Caches/tmp_1861406603/main.java:69: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:74: error: class, interface, or enum expected
public synchronized void clear() {
^
/root/JavaX-Caches/tmp_1861406603/main.java:76: error: class, interface, or enum expected
for (int ix = 0; ix < keys1.length; ix++) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:76: error: class, interface, or enum expected
for (int ix = 0; ix < keys1.length; ix++) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:76: error: class, interface, or enum expected
for (int ix = 0; ix < keys1.length; ix++) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:78: error: class, interface, or enum expected
values[ix] = null;
^
/root/JavaX-Caches/tmp_1861406603/main.java:79: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:81: error: class, interface, or enum expected
modCount++;
^
/root/JavaX-Caches/tmp_1861406603/main.java:82: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:87: error: class, interface, or enum expected
public synchronized boolean containsKey(Object k) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:89: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:94: error: class, interface, or enum expected
public synchronized boolean containsValue(Object v) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:98: error: class, interface, or enum expected
for (int ix = 0; ix < values.length; ix++)
^
/root/JavaX-Caches/tmp_1861406603/main.java:98: error: class, interface, or enum expected
for (int ix = 0; ix < values.length; ix++)
^
/root/JavaX-Caches/tmp_1861406603/main.java:98: error: class, interface, or enum expected
for (int ix = 0; ix < values.length; ix++)
^
/root/JavaX-Caches/tmp_1861406603/main.java:102: error: class, interface, or enum expected
return false;
^
/root/JavaX-Caches/tmp_1861406603/main.java:103: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:108: error: class, interface, or enum expected
public synchronized Set, V>> entrySet() {
^
/root/JavaX-Caches/tmp_1861406603/main.java:110: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:116: error: class, interface, or enum expected
public synchronized V remove(Object k) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:120: error: class, interface, or enum expected
if (keys1[index] != null) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:125: error: class, interface, or enum expected
keys1[index] = keys2[index] = (K) deletedObject;
^
/root/JavaX-Caches/tmp_1861406603/main.java:126: error: class, interface, or enum expected
values[index] = (V) deletedObject;
^
/root/JavaX-Caches/tmp_1861406603/main.java:127: error: class, interface, or enum expected
modCount++;
^
/root/JavaX-Caches/tmp_1861406603/main.java:128: error: class, interface, or enum expected
elements--;
^
/root/JavaX-Caches/tmp_1861406603/main.java:129: error: class, interface, or enum expected
return v;
^
/root/JavaX-Caches/tmp_1861406603/main.java:130: error: class, interface, or enum expected
} else
^
/root/JavaX-Caches/tmp_1861406603/main.java:133: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:139: error: class, interface, or enum expected
public synchronized V put(Pair k, V v) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:142: error: class, interface, or enum expected
if (k.b == null)
^
/root/JavaX-Caches/tmp_1861406603/main.java:145: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_1861406603/main.java:146: error: class, interface, or enum expected
int hash1 = k.a.hashCode();
^
/root/JavaX-Caches/tmp_1861406603/main.java:147: error: class, interface, or enum expected
int hash2 = k.b.hashCode();
^
/root/JavaX-Caches/tmp_1861406603/main.java:148: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % keys1.length;
^
/root/JavaX-Caches/tmp_1861406603/main.java:149: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_1861406603/main.java:150: error: class, interface, or enum expected
int deletedix = -1;
^
/root/JavaX-Caches/tmp_1861406603/main.java:153: error: class, interface, or enum expected
while(keys1[index] != null &&
^
/root/JavaX-Caches/tmp_1861406603/main.java:164: error: class, interface, or enum expected
index = ((index + offset) & 0x7FFFFFFF) % keys1.length;
^
/root/JavaX-Caches/tmp_1861406603/main.java:165: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_1861406603/main.java:167: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_1861406603/main.java:169: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:174: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1861406603/main.java:177: error: class, interface, or enum expected
modCount++;
^
/root/JavaX-Caches/tmp_1861406603/main.java:178: error: class, interface, or enum expected
elements++;
^
/root/JavaX-Caches/tmp_1861406603/main.java:180: error: class, interface, or enum expected
keys1[index] = k.a;
^
/root/JavaX-Caches/tmp_1861406603/main.java:181: error: class, interface, or enum expected
keys2[index] = k.b;
^
/root/JavaX-Caches/tmp_1861406603/main.java:182: error: class, interface, or enum expected
values[index] = (V) v;
^
/root/JavaX-Caches/tmp_1861406603/main.java:185: error: class, interface, or enum expected
if (1 - (freecells / (double) keys1.length) > LOAD_FACTOR)
^
/root/JavaX-Caches/tmp_1861406603/main.java:187: error: class, interface, or enum expected
return null;
^
/root/JavaX-Caches/tmp_1861406603/main.java:188: error: class, interface, or enum expected
} else { // was there already
^
/root/JavaX-Caches/tmp_1861406603/main.java:190: error: class, interface, or enum expected
V oldv = values[index];
^
/root/JavaX-Caches/tmp_1861406603/main.java:191: error: class, interface, or enum expected
values[index] = (V) v;
^
/root/JavaX-Caches/tmp_1861406603/main.java:192: error: class, interface, or enum expected
return oldv;
^
/root/JavaX-Caches/tmp_1861406603/main.java:193: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:201: error: class, interface, or enum expected
K[] newKeys1 = (K[]) new Object[newCapacity];
^
/root/JavaX-Caches/tmp_1861406603/main.java:202: error: class, interface, or enum expected
K[] newKeys2 = (K[]) new Object[newCapacity];
^
/root/JavaX-Caches/tmp_1861406603/main.java:203: error: class, interface, or enum expected
V[] newValues = (V[]) new Object[newCapacity];
^
/root/JavaX-Caches/tmp_1861406603/main.java:205: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:205: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:205: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:207: error: class, interface, or enum expected
if (k1 == null || k1 == deletedObject)
^
/root/JavaX-Caches/tmp_1861406603/main.java:210: error: class, interface, or enum expected
Object k2 = keys2[ix];
^
/root/JavaX-Caches/tmp_1861406603/main.java:211: error: class, interface, or enum expected
int hash = pair(k1, k2).hashCode();
^
/root/JavaX-Caches/tmp_1861406603/main.java:212: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % newCapacity;
^
/root/JavaX-Caches/tmp_1861406603/main.java:213: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_1861406603/main.java:216: error: class, interface, or enum expected
while(newKeys1[index] != null) { // no need to test for duplicates
^
/root/JavaX-Caches/tmp_1861406603/main.java:218: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_1861406603/main.java:220: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_1861406603/main.java:222: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:225: error: class, interface, or enum expected
newKeys2[index] = (K) k2;
^
/root/JavaX-Caches/tmp_1861406603/main.java:226: error: class, interface, or enum expected
newValues[index] = values[ix];
^
/root/JavaX-Caches/tmp_1861406603/main.java:227: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:230: error: class, interface, or enum expected
keys2 = newKeys2;
^
/root/JavaX-Caches/tmp_1861406603/main.java:231: error: class, interface, or enum expected
values = newValues;
^
/root/JavaX-Caches/tmp_1861406603/main.java:232: error: class, interface, or enum expected
freecells = keys1.length - elements;
^
/root/JavaX-Caches/tmp_1861406603/main.java:233: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1861406603/main.java:239: error: class, interface, or enum expected
public synchronized V get(Object k) {
^
/root/JavaX-Caches/tmp_1861406603/main.java:241: error: class, interface, or enum expected
}
^
100 errors
only showing the first 100 errors, of 119 total; use -Xmaxerrs if you would like to see more