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

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

/root/JavaX-Caches/tmp_1751038777/main.java:3: error: class, interface, or enum expected sclass ManagedIntObjects_indirect implements IIntMemory_indirect { ^ /root/JavaX-Caches/tmp_1751038777/main.java:8: error: class, interface, or enum expected new FreeList freeList; ^ /root/JavaX-Caches/tmp_1751038777/main.java:9: error: class, interface, or enum expected bool collecting, compacting; // GC phases ^ /root/JavaX-Caches/tmp_1751038777/main.java:11: error: class, interface, or enum expected *() { ^ /root/JavaX-Caches/tmp_1751038777/main.java:13: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:18: error: class, interface, or enum expected public long size() { ret mem.length; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:18: error: class, interface, or enum expected public long size() { ret mem.length; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:19: error: class, interface, or enum expected public int get(Addr i) { ret mem[i]; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:19: error: class, interface, or enum expected public int get(Addr i) { ret mem[i]; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:20: error: class, interface, or enum expected public void set(Addr i, int val) { mem[i] = val; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:20: error: class, interface, or enum expected public void set(Addr i, int val) { mem[i] = val; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:31: error: class, interface, or enum expected if (newSize == size) ret; ^ /root/JavaX-Caches/tmp_1751038777/main.java:32: error: class, interface, or enum expected if (newSize < size) unimplemented("Shrinking memory"); ^ /root/JavaX-Caches/tmp_1751038777/main.java:33: error: class, interface, or enum expected print("New memory size: " + newSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:34: error: class, interface, or enum expected mem = resizeIntArray(mem, newSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:35: error: class, interface, or enum expected free(size, newSize-size); ^ /root/JavaX-Caches/tmp_1751038777/main.java:36: error: class, interface, or enum expected onMemorySizeChanged(); ^ /root/JavaX-Caches/tmp_1751038777/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:46: error: class, interface, or enum expected while ((r = freeList.findFreeSpace(length)) == null) { ^ /root/JavaX-Caches/tmp_1751038777/main.java:48: error: class, interface, or enum expected growMemory(); ^ /root/JavaX-Caches/tmp_1751038777/main.java:49: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:52: error: class, interface, or enum expected ret r.start; ^ /root/JavaX-Caches/tmp_1751038777/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:57: error: class, interface, or enum expected deb()?.print("Freeing " + start + " (l=" + length + ")"); ^ /root/JavaX-Caches/tmp_1751038777/main.java:58: error: class, interface, or enum expected freeList.add(IntRange(start, start+length)); ^ /root/JavaX-Caches/tmp_1751038777/main.java:59: error: class, interface, or enum expected fillMem(start, start+length, 0); ^ /root/JavaX-Caches/tmp_1751038777/main.java:60: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:64: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:66: error: class, interface, or enum expected final int memorySize() { ret mem.length; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:66: error: class, interface, or enum expected final int memorySize() { ret mem.length; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:67: error: class, interface, or enum expected final public int read(Addr i) { ret get(i); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:67: error: class, interface, or enum expected final public int read(Addr i) { ret get(i); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:68: error: class, interface, or enum expected final void write(Addr i, int val) { set(i, val); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:68: error: class, interface, or enum expected final void write(Addr i, int val) { set(i, val); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:71: error: class, interface, or enum expected int sizeOfPointer() { ret 1; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:72: error: class, interface, or enum expected int wordSizeInBytes() { ret 4; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:74: error: class, interface, or enum expected public Addr nullPtr() { ret 0; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:74: error: class, interface, or enum expected public Addr nullPtr() { ret 0; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:80: error: class, interface, or enum expected int size = get(addr); ^ /root/JavaX-Caches/tmp_1751038777/main.java:81: error: class, interface, or enum expected ret new RandomAccessAbstractList<BoxedAddr>() { ^ /root/JavaX-Caches/tmp_1751038777/main.java:82: error: class, interface, or enum expected public int size() { ret size; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:82: error: class, interface, or enum expected public int size() { ret size; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:83: error: class, interface, or enum expected public BoxedAddr get(int i) { rangeCheck(i, size); ret read(addr+1+i); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:83: error: class, interface, or enum expected public BoxedAddr get(int i) { rangeCheck(i, size); ret read(addr+1+i); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:83: error: class, interface, or enum expected public BoxedAddr get(int i) { rangeCheck(i, size); ret read(addr+1+i); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:84: error: class, interface, or enum expected public Int set(int i, Int val) { rangeCheck(i, size); Int old = get(i); write(addr+1+i, val); ret old; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:84: error: class, interface, or enum expected public Int set(int i, Int val) { rangeCheck(i, size); Int old = get(i); write(addr+1+i, val); ret old; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:84: error: class, interface, or enum expected public Int set(int i, Int val) { rangeCheck(i, size); Int old = get(i); write(addr+1+i, val); ret old; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:84: error: class, interface, or enum expected public Int set(int i, Int val) { rangeCheck(i, size); Int old = get(i); write(addr+1+i, val); ret old; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:84: error: class, interface, or enum expected public Int set(int i, Int val) { rangeCheck(i, size); Int old = get(i); write(addr+1+i, val); ret old; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:86: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:90: error: class, interface, or enum expected Addr a = alloc(size+1); ^ /root/JavaX-Caches/tmp_1751038777/main.java:91: error: class, interface, or enum expected set(a, size); ^ /root/JavaX-Caches/tmp_1751038777/main.java:92: error: class, interface, or enum expected ret a; ^ /root/JavaX-Caches/tmp_1751038777/main.java:93: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:97: error: class, interface, or enum expected deb()?.print("freePointerArray at " + a); ^ /root/JavaX-Caches/tmp_1751038777/main.java:98: error: class, interface, or enum expected free(a, read(a)+1); ^ /root/JavaX-Caches/tmp_1751038777/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:103: error: class, interface, or enum expected int n = l(array); ^ /root/JavaX-Caches/tmp_1751038777/main.java:104: error: class, interface, or enum expected deb()?.printVars("newIntArray", +n); ^ /root/JavaX-Caches/tmp_1751038777/main.java:105: error: class, interface, or enum expected Addr ptr = alloc(n+1); ^ /root/JavaX-Caches/tmp_1751038777/main.java:106: error: class, interface, or enum expected set(ptr, n); ^ /root/JavaX-Caches/tmp_1751038777/main.java:107: error: class, interface, or enum expected for i to n: ^ /root/JavaX-Caches/tmp_1751038777/main.java:109: error: class, interface, or enum expected ret ptr; ^ /root/JavaX-Caches/tmp_1751038777/main.java:110: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:115: error: class, interface, or enum expected if (a == 0) ret newPointerArray(newSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:116: error: class, interface, or enum expected int oldSize = get(a); ^ /root/JavaX-Caches/tmp_1751038777/main.java:117: error: class, interface, or enum expected if (oldSize == newSize) ret a; ^ /root/JavaX-Caches/tmp_1751038777/main.java:119: error: class, interface, or enum expected Addr a2 = realloc(a, oldSize+1, newSize+1); ^ /root/JavaX-Caches/tmp_1751038777/main.java:120: error: class, interface, or enum expected set(a2, newSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:121: error: class, interface, or enum expected ret a2; ^ /root/JavaX-Caches/tmp_1751038777/main.java:122: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:127: error: class, interface, or enum expected if (a == 0) ret alloc(newSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:128: error: class, interface, or enum expected if (oldSize == newSize) ret a; ^ /root/JavaX-Caches/tmp_1751038777/main.java:129: error: class, interface, or enum expected if (oldSize > newSize) { ^ /root/JavaX-Caches/tmp_1751038777/main.java:131: error: class, interface, or enum expected ret a; ^ /root/JavaX-Caches/tmp_1751038777/main.java:132: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:137: error: class, interface, or enum expected if (freeList.canRemove(r)) { ^ /root/JavaX-Caches/tmp_1751038777/main.java:140: error: class, interface, or enum expected freeList.remove(r); ^ /root/JavaX-Caches/tmp_1751038777/main.java:141: error: class, interface, or enum expected ret a; ^ /root/JavaX-Caches/tmp_1751038777/main.java:142: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:146: error: class, interface, or enum expected Addr a2 = alloc(newSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:147: error: class, interface, or enum expected memCopy(a, a2, oldSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:148: error: class, interface, or enum expected deb()?.printVars("realloc free old, returning", +a2); ^ /root/JavaX-Caches/tmp_1751038777/main.java:149: error: class, interface, or enum expected free(a, oldSize); ^ /root/JavaX-Caches/tmp_1751038777/main.java:150: error: class, interface, or enum expected ret a2; ^ /root/JavaX-Caches/tmp_1751038777/main.java:151: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:155: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:167: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1751038777/main.java:169: error: class, interface, or enum expected int totalFree() { ret freeList.totalFree(); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:171: error: class, interface, or enum expected int reservedSpaceAtBeginning() { ret 1; } ^ /root/JavaX-Caches/tmp_1751038777/main.java:173: error: class, interface, or enum expected void copyReservedArea(int[] newMem) { newMem[0] = get(0); } ^ /root/JavaX-Caches/tmp_1751038777/main.java:177: error: class, interface, or enum expected if (rootObject != null) ^ /root/JavaX-Caches/tmp_1751038777/main.java:179: error: class, interface, or enum expected compacting = true; ^ /root/JavaX-Caches/tmp_1751038777/main.java:180: error: class, interface, or enum expected collector.collectAndCompact(); ^ /root/JavaX-Caches/tmp_1751038777/main.java:181: error: class, interface, or enum expected compacting = false; ^ /root/JavaX-Caches/tmp_1751038777/main.java:182: error: class, interface, or enum expected collecting = false; ^ /root/JavaX-Caches/tmp_1751038777/main.java:183: error: class, interface, or enum expected } ^ 100 errors only showing the first 100 errors, of 128 total; use -Xmaxerrs if you would like to see more