Wrote /root/JavaX-Caches/tmp_1072217242/main.java - 9748 bytes (written=9748, should be 9748)
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_1201012230 /root/JavaX-Caches/tmp_1072217242/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1072217242/main.java:21: error: class, interface, or enum expected
sclass CompactHashMap extends AbstractMap {
^
/root/JavaX-Caches/tmp_1072217242/main.java:22: error: class, interface, or enum expected
final static int INITIAL_SIZE = 3;
^
/root/JavaX-Caches/tmp_1072217242/main.java:23: error: class, interface, or enum expected
final static double LOAD_FACTOR = 0.6;
^
/root/JavaX-Caches/tmp_1072217242/main.java:26: error: class, interface, or enum expected
final static Object nullObject = new Object();
^
/root/JavaX-Caches/tmp_1072217242/main.java:34: error: class, interface, or enum expected
final static Object deletedObject = new Object();
^
/root/JavaX-Caches/tmp_1072217242/main.java:35: error: class, interface, or enum expected
int elements;
^
/root/JavaX-Caches/tmp_1072217242/main.java:36: error: class, interface, or enum expected
int freecells;
^
/root/JavaX-Caches/tmp_1072217242/main.java:37: error: class, interface, or enum expected
K[] keys;
^
/root/JavaX-Caches/tmp_1072217242/main.java:38: error: class, interface, or enum expected
V[] values; // object at pos x corresponds to key at pos x
^
/root/JavaX-Caches/tmp_1072217242/main.java:39: error: class, interface, or enum expected
int modCount;
^
/root/JavaX-Caches/tmp_1072217242/main.java:41: error: class, interface, or enum expected
*() {
^
/root/JavaX-Caches/tmp_1072217242/main.java:43: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:47: error: class, interface, or enum expected
values = (V[]) new Object[(size==0 ? 1 : size)];
^
/root/JavaX-Caches/tmp_1072217242/main.java:48: error: class, interface, or enum expected
elements = 0;
^
/root/JavaX-Caches/tmp_1072217242/main.java:49: error: class, interface, or enum expected
freecells = keys.length;
^
/root/JavaX-Caches/tmp_1072217242/main.java:50: error: class, interface, or enum expected
modCount = 0;
^
/root/JavaX-Caches/tmp_1072217242/main.java:51: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:58: error: class, interface, or enum expected
public synchronized int size() {
^
/root/JavaX-Caches/tmp_1072217242/main.java:60: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:65: error: class, interface, or enum expected
public synchronized boolean isEmpty() {
^
/root/JavaX-Caches/tmp_1072217242/main.java:67: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:72: error: class, interface, or enum expected
public synchronized void clear() {
^
/root/JavaX-Caches/tmp_1072217242/main.java:74: error: class, interface, or enum expected
for (int ix = 0; ix < keys.length; ix++) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:74: error: class, interface, or enum expected
for (int ix = 0; ix < keys.length; ix++) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:74: error: class, interface, or enum expected
for (int ix = 0; ix < keys.length; ix++) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:76: error: class, interface, or enum expected
values[ix] = null;
^
/root/JavaX-Caches/tmp_1072217242/main.java:77: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:79: error: class, interface, or enum expected
modCount++;
^
/root/JavaX-Caches/tmp_1072217242/main.java:80: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:85: error: class, interface, or enum expected
public synchronized boolean containsKey(Object k) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:87: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:92: error: class, interface, or enum expected
public synchronized boolean containsValue(Object v) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:96: error: class, interface, or enum expected
for (int ix = 0; ix < values.length; ix++)
^
/root/JavaX-Caches/tmp_1072217242/main.java:96: error: class, interface, or enum expected
for (int ix = 0; ix < values.length; ix++)
^
/root/JavaX-Caches/tmp_1072217242/main.java:96: error: class, interface, or enum expected
for (int ix = 0; ix < values.length; ix++)
^
/root/JavaX-Caches/tmp_1072217242/main.java:100: error: class, interface, or enum expected
return false;
^
/root/JavaX-Caches/tmp_1072217242/main.java:101: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:106: error: class, interface, or enum expected
public synchronized Set> entrySet() {
^
/root/JavaX-Caches/tmp_1072217242/main.java:108: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:114: error: class, interface, or enum expected
public synchronized V remove(Object k) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:118: error: class, interface, or enum expected
if (keys[index] != null) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:123: error: class, interface, or enum expected
keys[index] = (K) deletedObject;
^
/root/JavaX-Caches/tmp_1072217242/main.java:124: error: class, interface, or enum expected
values[index] = (V) deletedObject;
^
/root/JavaX-Caches/tmp_1072217242/main.java:125: error: class, interface, or enum expected
modCount++;
^
/root/JavaX-Caches/tmp_1072217242/main.java:126: error: class, interface, or enum expected
elements--;
^
/root/JavaX-Caches/tmp_1072217242/main.java:127: error: class, interface, or enum expected
return v;
^
/root/JavaX-Caches/tmp_1072217242/main.java:128: error: class, interface, or enum expected
} else
^
/root/JavaX-Caches/tmp_1072217242/main.java:131: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:137: error: class, interface, or enum expected
public synchronized V put(K k, V v) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:141: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_1072217242/main.java:142: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % keys.length;
^
/root/JavaX-Caches/tmp_1072217242/main.java:143: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_1072217242/main.java:144: error: class, interface, or enum expected
int deletedix = -1;
^
/root/JavaX-Caches/tmp_1072217242/main.java:147: error: class, interface, or enum expected
while(keys[index] != null &&
^
/root/JavaX-Caches/tmp_1072217242/main.java:156: error: class, interface, or enum expected
index = ((index + offset) & 0x7FFFFFFF) % keys.length;
^
/root/JavaX-Caches/tmp_1072217242/main.java:157: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_1072217242/main.java:159: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_1072217242/main.java:161: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:166: error: class, interface, or enum expected
else
^
/root/JavaX-Caches/tmp_1072217242/main.java:169: error: class, interface, or enum expected
modCount++;
^
/root/JavaX-Caches/tmp_1072217242/main.java:170: error: class, interface, or enum expected
elements++;
^
/root/JavaX-Caches/tmp_1072217242/main.java:172: error: class, interface, or enum expected
keys[index] = (K) k;
^
/root/JavaX-Caches/tmp_1072217242/main.java:173: error: class, interface, or enum expected
values[index] = (V) v;
^
/root/JavaX-Caches/tmp_1072217242/main.java:176: error: class, interface, or enum expected
if (1 - (freecells / (double) keys.length) > LOAD_FACTOR)
^
/root/JavaX-Caches/tmp_1072217242/main.java:178: error: class, interface, or enum expected
return null;
^
/root/JavaX-Caches/tmp_1072217242/main.java:179: error: class, interface, or enum expected
} else { // was there already
^
/root/JavaX-Caches/tmp_1072217242/main.java:181: error: class, interface, or enum expected
V oldv = values[index];
^
/root/JavaX-Caches/tmp_1072217242/main.java:182: error: class, interface, or enum expected
values[index] = (V) v;
^
/root/JavaX-Caches/tmp_1072217242/main.java:183: error: class, interface, or enum expected
return oldv;
^
/root/JavaX-Caches/tmp_1072217242/main.java:184: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:192: error: class, interface, or enum expected
K[] newKeys = (K[]) new Object[newCapacity];
^
/root/JavaX-Caches/tmp_1072217242/main.java:193: error: class, interface, or enum expected
V[] newValues = (V[]) new Object[newCapacity];
^
/root/JavaX-Caches/tmp_1072217242/main.java:195: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:195: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:195: error: class, interface, or enum expected
for (int ix = 0; ix < oldCapacity; ix++) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:197: error: class, interface, or enum expected
if (k == null || k == deletedObject)
^
/root/JavaX-Caches/tmp_1072217242/main.java:200: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_1072217242/main.java:201: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % newCapacity;
^
/root/JavaX-Caches/tmp_1072217242/main.java:202: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_1072217242/main.java:205: error: class, interface, or enum expected
while(newKeys[index] != null) { // no need to test for duplicates
^
/root/JavaX-Caches/tmp_1072217242/main.java:207: error: class, interface, or enum expected
offset = offset*2 + 1;
^
/root/JavaX-Caches/tmp_1072217242/main.java:209: error: class, interface, or enum expected
if (offset == -1)
^
/root/JavaX-Caches/tmp_1072217242/main.java:211: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:214: error: class, interface, or enum expected
newValues[index] = values[ix];
^
/root/JavaX-Caches/tmp_1072217242/main.java:215: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:218: error: class, interface, or enum expected
values = newValues;
^
/root/JavaX-Caches/tmp_1072217242/main.java:219: error: class, interface, or enum expected
freecells = keys.length - elements;
^
/root/JavaX-Caches/tmp_1072217242/main.java:220: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:226: error: class, interface, or enum expected
public synchronized V get(Object k) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:228: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:234: error: class, interface, or enum expected
public synchronized Collection values() {
^
/root/JavaX-Caches/tmp_1072217242/main.java:236: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:241: error: class, interface, or enum expected
public synchronized Set keySet() {
^
/root/JavaX-Caches/tmp_1072217242/main.java:243: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1072217242/main.java:247: error: class, interface, or enum expected
final int findKeyIndex(Object k) {
^
/root/JavaX-Caches/tmp_1072217242/main.java:251: error: class, interface, or enum expected
int hash = k.hashCode();
^
/root/JavaX-Caches/tmp_1072217242/main.java:252: error: class, interface, or enum expected
int index = (hash & 0x7FFFFFFF) % keys.length;
^
/root/JavaX-Caches/tmp_1072217242/main.java:253: error: class, interface, or enum expected
int offset = 1;
^
/root/JavaX-Caches/tmp_1072217242/main.java:256: error: class, interface, or enum expected
while(keys[index] != null &&
^
/root/JavaX-Caches/tmp_1072217242/main.java:260: error: class, interface, or enum expected
offset = offset*2 + 1;
^
100 errors
only showing the first 100 errors, of 104 total; use -Xmaxerrs if you would like to see more