Wrote /root/JavaX-Caches/tmp_1160324600/main.java - 2416 bytes (written=2416, should be 2416)
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_11808007 /root/JavaX-Caches/tmp_1160324600/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1160324600/main.java:1: error: class, interface, or enum expected
static String structure(Object o) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:3: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:8: error: class, interface, or enum expected
static String structure(Object o, int stringSizeLimit) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:10: error: class, interface, or enum expected
String name = o.getClass().getName();
^
/root/JavaX-Caches/tmp_1160324600/main.java:12: error: class, interface, or enum expected
new StringBuilder buf;
^
/root/JavaX-Caches/tmp_1160324600/main.java:14: error: class, interface, or enum expected
if (o instanceof Collection) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:17: error: class, interface, or enum expected
buf.append(structure(x, stringSizeLimit));
^
/root/JavaX-Caches/tmp_1160324600/main.java:18: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:20: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:25: error: class, interface, or enum expected
buf.append(structure(((Map.Entry) e).getKey(), stringSizeLimit));
^
/root/JavaX-Caches/tmp_1160324600/main.java:26: error: class, interface, or enum expected
buf.append("=");
^
/root/JavaX-Caches/tmp_1160324600/main.java:27: error: class, interface, or enum expected
buf.append(structure(((Map.Entry) e).getValue(), stringSizeLimit));
^
/root/JavaX-Caches/tmp_1160324600/main.java:28: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:30: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:34: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:34: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:34: error: class, interface, or enum expected
for (int i = 0; i < n; i++) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:36: error: class, interface, or enum expected
buf.append(structure(Array.get(o, i), stringSizeLimit));
^
/root/JavaX-Caches/tmp_1160324600/main.java:37: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:39: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:45: error: class, interface, or enum expected
if (name.startsWith("java.") || name.startsWith("javax."))
^
/root/JavaX-Caches/tmp_1160324600/main.java:48: error: class, interface, or enum expected
String shortName = o.getClass().getName().replaceAll("^main\\$", "");
^
/root/JavaX-Caches/tmp_1160324600/main.java:51: error: class, interface, or enum expected
Field[] fields = o.getClass().getDeclaredFields();
^
/root/JavaX-Caches/tmp_1160324600/main.java:52: error: class, interface, or enum expected
int numFields = 0;
^
/root/JavaX-Caches/tmp_1160324600/main.java:53: error: class, interface, or enum expected
String fieldName = "";
^
/root/JavaX-Caches/tmp_1160324600/main.java:54: error: class, interface, or enum expected
for (Field field : fields) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:57: error: class, interface, or enum expected
Object value;
^
/root/JavaX-Caches/tmp_1160324600/main.java:58: error: class, interface, or enum expected
try {
^
/root/JavaX-Caches/tmp_1160324600/main.java:60: error: class, interface, or enum expected
value = field.get(o);
^
/root/JavaX-Caches/tmp_1160324600/main.java:61: error: class, interface, or enum expected
} catch (Exception e) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:63: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:69: error: class, interface, or enum expected
if (value != null) {
^
/root/JavaX-Caches/tmp_1160324600/main.java:71: error: class, interface, or enum expected
buf.append(fieldName + "=" + structure(value, stringSizeLimit));
^
/root/JavaX-Caches/tmp_1160324600/main.java:72: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:74: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1160324600/main.java:77: error: class, interface, or enum expected
if (numFields == 1 && structure_allowShortening)
^
/root/JavaX-Caches/tmp_1160324600/main.java:79: error: class, interface, or enum expected
String s = shortName;
^
/root/JavaX-Caches/tmp_1160324600/main.java:80: error: class, interface, or enum expected
if (buf.length() != 0)
^
/root/JavaX-Caches/tmp_1160324600/main.java:82: error: class, interface, or enum expected
return s;
^
/root/JavaX-Caches/tmp_1160324600/main.java:83: error: class, interface, or enum expected
}
^
40 errors