Wrote /root/JavaX-Caches/tmp_990237791/main.java - 2195 bytes (written=2195, should be 2195)
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_824668296 /root/JavaX-Caches/tmp_990237791/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_990237791/main.java:3: error: class, interface, or enum expected
sclass RecursiveObjectSize {
^
/root/JavaX-Caches/tmp_990237791/main.java:5: error: class, interface, or enum expected
new SimpleStack stack;
^
/root/JavaX-Caches/tmp_990237791/main.java:6: error: class, interface, or enum expected
Set seen = new CompactIdentityHashSet; // add objects here to ignore them
^
/root/JavaX-Caches/tmp_990237791/main.java:7: error: class, interface, or enum expected
Set fieldsToIgnore;
^
/root/JavaX-Caches/tmp_990237791/main.java:8: error: class, interface, or enum expected
Set realmsToIgnore;
^
/root/JavaX-Caches/tmp_990237791/main.java:10: error: class, interface, or enum expected
settable int dummySizeForUnknownObject = 24;
^
/root/JavaX-Caches/tmp_990237791/main.java:12: error: class, interface, or enum expected
settable bool skipTransientFields;
^
/root/JavaX-Caches/tmp_990237791/main.java:14: error: class, interface, or enum expected
swappable void onNewObject(O o) {}
^
/root/JavaX-Caches/tmp_990237791/main.java:16: error: class, interface, or enum expected
swappable bool shouldIgnore(O o) { false; }
^
/root/JavaX-Caches/tmp_990237791/main.java:20: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_990237791/main.java:24: error: class, interface, or enum expected
onSizeChanged();
^
/root/JavaX-Caches/tmp_990237791/main.java:25: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_990237791/main.java:29: error: class, interface, or enum expected
seen.add(o);
^
/root/JavaX-Caches/tmp_990237791/main.java:30: error: class, interface, or enum expected
stack.add(o);
^
/root/JavaX-Caches/tmp_990237791/main.java:32: error: class, interface, or enum expected
while ping (nempty(stack))
^
/root/JavaX-Caches/tmp_990237791/main.java:34: error: class, interface, or enum expected
ret size;
^
/root/JavaX-Caches/tmp_990237791/main.java:35: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_990237791/main.java:39: error: class, interface, or enum expected
if (shouldIgnore(o)) ret;
^
/root/JavaX-Caches/tmp_990237791/main.java:40: error: class, interface, or enum expected
onNewObject(o);
^
/root/JavaX-Caches/tmp_990237791/main.java:42: error: class, interface, or enum expected
if (realmsToIgnore != null && contains(realmsToIgnore, getRealm(o))) ret;
^
/root/JavaX-Caches/tmp_990237791/main.java:44: error: class, interface, or enum expected
ifdef RecursiveObjectSize_debug
^
/root/JavaX-Caches/tmp_990237791/main.java:46: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_990237791/main.java:49: error: class, interface, or enum expected
if (isInstanceOfSyntheticClass(o))
^
/root/JavaX-Caches/tmp_990237791/main.java:52: error: class, interface, or enum expected
incSize(unsafe_sizeOf(o));
^
/root/JavaX-Caches/tmp_990237791/main.java:54: error: class, interface, or enum expected
if (o cast O[]) {
^
/root/JavaX-Caches/tmp_990237791/main.java:57: error: class, interface, or enum expected
ret;
^
/root/JavaX-Caches/tmp_990237791/main.java:58: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_990237791/main.java:62: error: class, interface, or enum expected
for (Field f : nonStaticNonPrimitiveFieldObjects(o)) {
^
/root/JavaX-Caches/tmp_990237791/main.java:64: error: class, interface, or enum expected
if (skipTransientFields && isTransient(f)) continue;
^
/root/JavaX-Caches/tmp_990237791/main.java:66: error: class, interface, or enum expected
O x;
^
/root/JavaX-Caches/tmp_990237791/main.java:67: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_990237791/main.java:69: error: class, interface, or enum expected
} catch e {
^
/root/JavaX-Caches/tmp_990237791/main.java:71: error: class, interface, or enum expected
continue;
^
/root/JavaX-Caches/tmp_990237791/main.java:72: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_990237791/main.java:75: error: class, interface, or enum expected
ifdef RecursiveObjectSize_debug
^
/root/JavaX-Caches/tmp_990237791/main.java:77: error: class, interface, or enum expected
endifdef
^
/root/JavaX-Caches/tmp_990237791/main.java:86: error: class, interface, or enum expected
}
^
37 errors