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

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

/root/JavaX-Caches/tmp_455765310/main.java:23: error: class, interface, or enum expected sclass WeakCompactHashSet<A> extends java.util.AbstractSet<A> { ^ /root/JavaX-Caches/tmp_455765310/main.java:24: error: class, interface, or enum expected protected final static int INITIAL_SIZE = 3; ^ /root/JavaX-Caches/tmp_455765310/main.java:25: error: class, interface, or enum expected protected final static double LOAD_FACTOR = 0.75; ^ /root/JavaX-Caches/tmp_455765310/main.java:27: error: class, interface, or enum expected protected final static WeakReference nullObject = new WeakReference(null); ^ /root/JavaX-Caches/tmp_455765310/main.java:28: error: class, interface, or enum expected protected final static WeakReference deletedObject = new WeakReference(null); ^ /root/JavaX-Caches/tmp_455765310/main.java:29: error: class, interface, or enum expected protected int elements; ^ /root/JavaX-Caches/tmp_455765310/main.java:30: error: class, interface, or enum expected protected int freecells; ^ /root/JavaX-Caches/tmp_455765310/main.java:31: error: class, interface, or enum expected protected MyWeakReference<A>[] objects; ^ /root/JavaX-Caches/tmp_455765310/main.java:32: error: class, interface, or enum expected protected int modCount; ^ /root/JavaX-Caches/tmp_455765310/main.java:34: error: class, interface, or enum expected sclass MyWeakReference<A> extends WeakReference<A> { ^ /root/JavaX-Caches/tmp_455765310/main.java:37: error: class, interface, or enum expected public int hashCode() { ret hash; } ^ /root/JavaX-Caches/tmp_455765310/main.java:37: error: class, interface, or enum expected public int hashCode() { ret hash; } ^ /root/JavaX-Caches/tmp_455765310/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:48: error: class, interface, or enum expected elements = 0; ^ /root/JavaX-Caches/tmp_455765310/main.java:49: error: class, interface, or enum expected freecells = objects.length; ^ /root/JavaX-Caches/tmp_455765310/main.java:50: error: class, interface, or enum expected modCount = 0; ^ /root/JavaX-Caches/tmp_455765310/main.java:51: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:55: error: class, interface, or enum expected addAll(c); ^ /root/JavaX-Caches/tmp_455765310/main.java:56: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:59: error: class, interface, or enum expected public Iterator<A> iterator() { ^ /root/JavaX-Caches/tmp_455765310/main.java:61: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:64: error: class, interface, or enum expected public int size() { ^ /root/JavaX-Caches/tmp_455765310/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:69: error: class, interface, or enum expected public boolean isEmpty() { ^ /root/JavaX-Caches/tmp_455765310/main.java:71: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:74: error: class, interface, or enum expected public boolean contains(Object o) { ^ /root/JavaX-Caches/tmp_455765310/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:81: error: class, interface, or enum expected int hash = o.hashCode(); ^ /root/JavaX-Caches/tmp_455765310/main.java:82: error: class, interface, or enum expected int index = (hash & 0x7FFFFFFF) % objects.length; ^ /root/JavaX-Caches/tmp_455765310/main.java:83: error: class, interface, or enum expected int offset = 1; ^ /root/JavaX-Caches/tmp_455765310/main.java:86: error: class, interface, or enum expected while(objects[index] != null && ^ /root/JavaX-Caches/tmp_455765310/main.java:90: error: class, interface, or enum expected offset = offset*2 + 1; ^ /root/JavaX-Caches/tmp_455765310/main.java:92: error: class, interface, or enum expected if (offset == -1) ^ /root/JavaX-Caches/tmp_455765310/main.java:94: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:100: error: class, interface, or enum expected synchronized public boolean add(Object o) { ^ /root/JavaX-Caches/tmp_455765310/main.java:103: error: class, interface, or enum expected int hash = o.hashCode(); ^ /root/JavaX-Caches/tmp_455765310/main.java:104: error: class, interface, or enum expected int index = (hash & 0x7FFFFFFF) % objects.length; ^ /root/JavaX-Caches/tmp_455765310/main.java:105: error: class, interface, or enum expected int offset = 1; ^ /root/JavaX-Caches/tmp_455765310/main.java:106: error: class, interface, or enum expected int deletedix = -1; ^ /root/JavaX-Caches/tmp_455765310/main.java:109: error: class, interface, or enum expected while(objects[index] != null && ^ /root/JavaX-Caches/tmp_455765310/main.java:118: error: class, interface, or enum expected index = ((index + offset) & 0x7FFFFFFF) % objects.length; ^ /root/JavaX-Caches/tmp_455765310/main.java:119: error: class, interface, or enum expected offset = offset*2 + 1; ^ /root/JavaX-Caches/tmp_455765310/main.java:121: error: class, interface, or enum expected if (offset == -1) ^ /root/JavaX-Caches/tmp_455765310/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:128: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_455765310/main.java:131: error: class, interface, or enum expected modCount++; ^ /root/JavaX-Caches/tmp_455765310/main.java:132: error: class, interface, or enum expected elements++; ^ /root/JavaX-Caches/tmp_455765310/main.java:140: error: class, interface, or enum expected objects[index] = (A) o; ^ /root/JavaX-Caches/tmp_455765310/main.java:143: error: class, interface, or enum expected if (1 - (freecells / (double) objects.length) > LOAD_FACTOR) ^ /root/JavaX-Caches/tmp_455765310/main.java:145: error: class, interface, or enum expected return true; ^ /root/JavaX-Caches/tmp_455765310/main.java:146: error: class, interface, or enum expected } else // was there already ^ /root/JavaX-Caches/tmp_455765310/main.java:148: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:151: error: class, interface, or enum expected synchronized public boolean remove(Object o) { ^ /root/JavaX-Caches/tmp_455765310/main.java:154: error: class, interface, or enum expected int hash = o.hashCode(); ^ /root/JavaX-Caches/tmp_455765310/main.java:155: error: class, interface, or enum expected int index = (hash & 0x7FFFFFFF) % objects.length; ^ /root/JavaX-Caches/tmp_455765310/main.java:156: error: class, interface, or enum expected int offset = 1; ^ /root/JavaX-Caches/tmp_455765310/main.java:159: error: class, interface, or enum expected while(objects[index] != null && ^ /root/JavaX-Caches/tmp_455765310/main.java:163: error: class, interface, or enum expected offset = offset*2 + 1; ^ /root/JavaX-Caches/tmp_455765310/main.java:165: error: class, interface, or enum expected if (offset == -1) ^ /root/JavaX-Caches/tmp_455765310/main.java:167: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:175: error: class, interface, or enum expected modCount++; ^ /root/JavaX-Caches/tmp_455765310/main.java:176: error: class, interface, or enum expected elements--; ^ /root/JavaX-Caches/tmp_455765310/main.java:177: error: class, interface, or enum expected return true; ^ /root/JavaX-Caches/tmp_455765310/main.java:178: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_455765310/main.java:181: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:184: error: class, interface, or enum expected synchronized public void clear() { ^ /root/JavaX-Caches/tmp_455765310/main.java:186: error: class, interface, or enum expected for (int ix = 0; ix < objects.length; ix++) ^ /root/JavaX-Caches/tmp_455765310/main.java:186: error: class, interface, or enum expected for (int ix = 0; ix < objects.length; ix++) ^ /root/JavaX-Caches/tmp_455765310/main.java:186: error: class, interface, or enum expected for (int ix = 0; ix < objects.length; ix++) ^ /root/JavaX-Caches/tmp_455765310/main.java:188: error: class, interface, or enum expected freecells = objects.length; ^ /root/JavaX-Caches/tmp_455765310/main.java:189: error: class, interface, or enum expected modCount++; ^ /root/JavaX-Caches/tmp_455765310/main.java:190: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:193: error: class, interface, or enum expected synchronized public Object[] toArray() { ^ /root/JavaX-Caches/tmp_455765310/main.java:195: error: class, interface, or enum expected Object[] objects = this.objects; ^ /root/JavaX-Caches/tmp_455765310/main.java:196: error: class, interface, or enum expected int pos = 0; ^ /root/JavaX-Caches/tmp_455765310/main.java:197: error: class, interface, or enum expected for (int i = 0; i < objects.length; i++) ^ /root/JavaX-Caches/tmp_455765310/main.java:197: error: class, interface, or enum expected for (int i = 0; i < objects.length; i++) ^ /root/JavaX-Caches/tmp_455765310/main.java:197: error: class, interface, or enum expected for (int i = 0; i < objects.length; i++) ^ /root/JavaX-Caches/tmp_455765310/main.java:201: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_455765310/main.java:203: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:206: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:210: error: class, interface, or enum expected synchronized public <T> T[] toArray(T[] a) { ^ /root/JavaX-Caches/tmp_455765310/main.java:212: error: class, interface, or enum expected if (a.length < size) ^ /root/JavaX-Caches/tmp_455765310/main.java:215: error: class, interface, or enum expected A[] objects = this.objects; ^ /root/JavaX-Caches/tmp_455765310/main.java:216: error: class, interface, or enum expected int pos = 0; ^ /root/JavaX-Caches/tmp_455765310/main.java:217: error: class, interface, or enum expected for (int i = 0; i < objects.length; i++) ^ /root/JavaX-Caches/tmp_455765310/main.java:217: error: class, interface, or enum expected for (int i = 0; i < objects.length; i++) ^ /root/JavaX-Caches/tmp_455765310/main.java:217: error: class, interface, or enum expected for (int i = 0; i < objects.length; i++) ^ /root/JavaX-Caches/tmp_455765310/main.java:221: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_455765310/main.java:223: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:225: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:229: error: class, interface, or enum expected if (gargagecells / (double) objects.length > 0.05) ^ /root/JavaX-Caches/tmp_455765310/main.java:232: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_455765310/main.java:235: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_455765310/main.java:240: error: class, interface, or enum expected WeakReference<A>[] newObjects = new WeakReference[newCapacity]; ^ /root/JavaX-Caches/tmp_455765310/main.java:242: error: class, interface, or enum expected for (int ix = 0; ix < oldCapacity; ix++) { ^ /root/JavaX-Caches/tmp_455765310/main.java:242: error: class, interface, or enum expected for (int ix = 0; ix < oldCapacity; ix++) { ^ /root/JavaX-Caches/tmp_455765310/main.java:242: error: class, interface, or enum expected for (int ix = 0; ix < oldCapacity; ix++) { ^ /root/JavaX-Caches/tmp_455765310/main.java:244: error: class, interface, or enum expected if (o == null || o == deletedObject) ^ 100 errors only showing the first 100 errors, of 111 total; use -Xmaxerrs if you would like to see more