Wrote /root/JavaX-Caches/tmp_795110103/main.java - 5235 bytes (written=5235, should be 5235)
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_1388125260 /root/JavaX-Caches/tmp_795110103/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_795110103/main.java:4: error: class, interface, or enum expected
sclass ExpiringHashMap implements Map {
^
/root/JavaX-Caches/tmp_795110103/main.java:5: error: class, interface, or enum expected
final Map internalMap;
^
/root/JavaX-Caches/tmp_795110103/main.java:6: error: class, interface, or enum expected
final Map> expiringKeys;
^
/root/JavaX-Caches/tmp_795110103/main.java:7: error: class, interface, or enum expected
final DelayQueue delayQueue = new DelayQueue();
^
/root/JavaX-Caches/tmp_795110103/main.java:9: error: class, interface, or enum expected
long maxLifeTimeMillis;
^
/root/JavaX-Caches/tmp_795110103/main.java:10: error: class, interface, or enum expected
bool renewOnGet, renewOnOverwrite = true;
^
/root/JavaX-Caches/tmp_795110103/main.java:12: error: class, interface, or enum expected
*() {
^
/root/JavaX-Caches/tmp_795110103/main.java:14: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:18: error: class, interface, or enum expected
expiringKeys = new WeakHashMap>();
^
/root/JavaX-Caches/tmp_795110103/main.java:19: error: class, interface, or enum expected
this.maxLifeTimeMillis = defaultMaxLifeTimeMillis;
^
/root/JavaX-Caches/tmp_795110103/main.java:20: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:22: error: class, interface, or enum expected
public int size() {
^
/root/JavaX-Caches/tmp_795110103/main.java:24: error: class, interface, or enum expected
return internalMap.size();
^
/root/JavaX-Caches/tmp_795110103/main.java:25: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:27: error: class, interface, or enum expected
public boolean isEmpty() {
^
/root/JavaX-Caches/tmp_795110103/main.java:29: error: class, interface, or enum expected
return internalMap.isEmpty();
^
/root/JavaX-Caches/tmp_795110103/main.java:30: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:32: error: class, interface, or enum expected
public boolean containsKey(Object key) {
^
/root/JavaX-Caches/tmp_795110103/main.java:34: error: class, interface, or enum expected
return internalMap.containsKey((K) key);
^
/root/JavaX-Caches/tmp_795110103/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:37: error: class, interface, or enum expected
public boolean containsValue(Object value) {
^
/root/JavaX-Caches/tmp_795110103/main.java:39: error: class, interface, or enum expected
return internalMap.containsValue((V) value);
^
/root/JavaX-Caches/tmp_795110103/main.java:40: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:42: error: class, interface, or enum expected
public V get(Object key) {
^
/root/JavaX-Caches/tmp_795110103/main.java:44: error: class, interface, or enum expected
if (renewOnGet) renewKey((K) key);
^
/root/JavaX-Caches/tmp_795110103/main.java:45: error: class, interface, or enum expected
return internalMap.get((K) key);
^
/root/JavaX-Caches/tmp_795110103/main.java:46: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:48: error: class, interface, or enum expected
public V put(K key, V value) {
^
/root/JavaX-Caches/tmp_795110103/main.java:50: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:52: error: class, interface, or enum expected
public V put(K key, V value, long lifeTimeMillis) {
^
/root/JavaX-Caches/tmp_795110103/main.java:54: error: class, interface, or enum expected
ExpiringKey delayedKey = new ExpiringKey(key, lifeTimeMillis);
^
/root/JavaX-Caches/tmp_795110103/main.java:55: error: class, interface, or enum expected
ExpiringKey oldKey = expiringKeys.put((K) key, delayedKey);
^
/root/JavaX-Caches/tmp_795110103/main.java:56: error: class, interface, or enum expected
if(oldKey != null) {
^
/root/JavaX-Caches/tmp_795110103/main.java:59: error: class, interface, or enum expected
delayedKey.maxLifeTimeMillis = oldKey.maxLifeTimeMillis;
^
/root/JavaX-Caches/tmp_795110103/main.java:60: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:62: error: class, interface, or enum expected
expiringKeys.put((K) key, delayedKey);
^
/root/JavaX-Caches/tmp_795110103/main.java:63: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:65: error: class, interface, or enum expected
return internalMap.put(key, value);
^
/root/JavaX-Caches/tmp_795110103/main.java:66: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:68: error: class, interface, or enum expected
public V remove(Object key) {
^
/root/JavaX-Caches/tmp_795110103/main.java:70: error: class, interface, or enum expected
expireKey(expiringKeys.remove((K) key));
^
/root/JavaX-Caches/tmp_795110103/main.java:71: error: class, interface, or enum expected
return removedValue;
^
/root/JavaX-Caches/tmp_795110103/main.java:72: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:74: error: class, interface, or enum expected
public void putAll(Map extends K, ? extends V> m) {
^
/root/JavaX-Caches/tmp_795110103/main.java:76: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:78: error: class, interface, or enum expected
public boolean renewKey(K key) {
^
/root/JavaX-Caches/tmp_795110103/main.java:80: error: class, interface, or enum expected
if (delayedKey != null) {
^
/root/JavaX-Caches/tmp_795110103/main.java:82: error: class, interface, or enum expected
return true;
^
/root/JavaX-Caches/tmp_795110103/main.java:83: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:85: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:90: error: class, interface, or enum expected
cleanup();
^
/root/JavaX-Caches/tmp_795110103/main.java:91: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:94: error: class, interface, or enum expected
public void clear() {
^
/root/JavaX-Caches/tmp_795110103/main.java:96: error: class, interface, or enum expected
expiringKeys.clear();
^
/root/JavaX-Caches/tmp_795110103/main.java:97: error: class, interface, or enum expected
internalMap.clear();
^
/root/JavaX-Caches/tmp_795110103/main.java:98: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:100: error: class, interface, or enum expected
public Set keySet() {
^
/root/JavaX-Caches/tmp_795110103/main.java:102: error: class, interface, or enum expected
ret internalMap.keySet(); // TODO: sync
^
/root/JavaX-Caches/tmp_795110103/main.java:103: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:105: error: class, interface, or enum expected
public Collection values() {
^
/root/JavaX-Caches/tmp_795110103/main.java:107: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:109: error: class, interface, or enum expected
public Set> entrySet() {
^
/root/JavaX-Caches/tmp_795110103/main.java:111: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:115: error: class, interface, or enum expected
while (delayedKey != null) {
^
/root/JavaX-Caches/tmp_795110103/main.java:117: error: class, interface, or enum expected
expiringKeys.remove(delayedKey.getKey());
^
/root/JavaX-Caches/tmp_795110103/main.java:118: error: class, interface, or enum expected
delayedKey = delayQueue.poll();
^
/root/JavaX-Caches/tmp_795110103/main.java:119: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_795110103/main.java:178: error: class, interface, or enum expected
ExpiringHashMap dontRenewOnOverwrite() {
^
/root/JavaX-Caches/tmp_795110103/main.java:180: error: class, interface, or enum expected
this;
^
/root/JavaX-Caches/tmp_795110103/main.java:181: error: class, interface, or enum expected
}
^
70 errors