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

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

/root/JavaX-Caches/tmp_1175211523/main.java:2: error: class, interface, or enum expected static <A> A clone(A o) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:4: error: class, interface, or enum expected Object x = clone_impl(o, new IdentityHashMap, q); ^ /root/JavaX-Caches/tmp_1175211523/main.java:5: error: class, interface, or enum expected while (!q.isEmpty()) ^ /root/JavaX-Caches/tmp_1175211523/main.java:7: error: class, interface, or enum expected return (A) x; ^ /root/JavaX-Caches/tmp_1175211523/main.java:8: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1175211523/main.java:10: error: class, interface, or enum expected static O clone_impl(O o, final IdentityHashMap seen, final ArrayDeque<Runnable> q) ctex { ^ /root/JavaX-Caches/tmp_1175211523/main.java:10: error: class, interface, or enum expected static O clone_impl(O o, final IdentityHashMap seen, final ArrayDeque<Runnable> q) ctex { ^ /root/JavaX-Caches/tmp_1175211523/main.java:13: error: class, interface, or enum expected Object y = seen.get(o); ^ /root/JavaX-Caches/tmp_1175211523/main.java:14: error: class, interface, or enum expected if (y != null) return y; ^ /root/JavaX-Caches/tmp_1175211523/main.java:16: error: class, interface, or enum expected if (o instanceof L) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:18: error: class, interface, or enum expected final new L l; ^ /root/JavaX-Caches/tmp_1175211523/main.java:19: error: class, interface, or enum expected seen.put(o, l); ^ /root/JavaX-Caches/tmp_1175211523/main.java:20: error: class, interface, or enum expected for (final O x : (L) o) ^ /root/JavaX-Caches/tmp_1175211523/main.java:20: error: class, interface, or enum expected for (final O x : (L) o) ^ /root/JavaX-Caches/tmp_1175211523/main.java:22: error: class, interface, or enum expected return l; ^ /root/JavaX-Caches/tmp_1175211523/main.java:23: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1175211523/main.java:26: error: class, interface, or enum expected final Map m = similarEmptyMap((Map) o); ^ /root/JavaX-Caches/tmp_1175211523/main.java:27: error: class, interface, or enum expected seen.put(o, m); ^ /root/JavaX-Caches/tmp_1175211523/main.java:28: error: class, interface, or enum expected for (O entry : ((Map) o).entrySet()) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:29: error: class, interface, or enum expected final Map.Entry e = (Map.Entry) entry; ^ /root/JavaX-Caches/tmp_1175211523/main.java:30: error: class, interface, or enum expected q.add(r { ^ /root/JavaX-Caches/tmp_1175211523/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1175211523/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1175211523/main.java:39: error: class, interface, or enum expected if (o instanceof O[]) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:40: error: class, interface, or enum expected final O[] l = (O[]) o; ^ /root/JavaX-Caches/tmp_1175211523/main.java:41: error: class, interface, or enum expected final O[] l2 = l.clone(); ^ /root/JavaX-Caches/tmp_1175211523/main.java:42: error: class, interface, or enum expected seen.put(o, l2); ^ /root/JavaX-Caches/tmp_1175211523/main.java:43: error: class, interface, or enum expected for (int i = 0; i < l.length; i++) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:43: error: class, interface, or enum expected for (int i = 0; i < l.length; i++) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:43: error: class, interface, or enum expected for (int i = 0; i < l.length; i++) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:44: error: class, interface, or enum expected final int _i = i; ^ /root/JavaX-Caches/tmp_1175211523/main.java:45: error: class, interface, or enum expected q.add(r { l2[_i] = clone_impl(l[_i], seen, q) }); ^ /root/JavaX-Caches/tmp_1175211523/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1175211523/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1175211523/main.java:53: error: class, interface, or enum expected final O clone = nuObjectWithoutArguments(o.getClass()); ^ /root/JavaX-Caches/tmp_1175211523/main.java:54: error: class, interface, or enum expected seen.put(o, clone); ^ /root/JavaX-Caches/tmp_1175211523/main.java:55: error: class, interface, or enum expected Class c = o.getClass(); ^ /root/JavaX-Caches/tmp_1175211523/main.java:56: error: class, interface, or enum expected while (c != O.class) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:56: error: <identifier> expected while (c != O.class) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:58: error: illegal start of type for (final Field field : fields) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:58: error: ';' expected for (final Field field : fields) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:58: error: <identifier> expected for (final Field field : fields) { ^ /root/JavaX-Caches/tmp_1175211523/main.java:63: error: ')' expected q.add(r { field.set(clone, clone_impl(value, seen, q)) }); ^ /root/JavaX-Caches/tmp_1175211523/main.java:63: error: ';' expected q.add(r { field.set(clone, clone_impl(value, seen, q)) }); ^ /root/JavaX-Caches/tmp_1175211523/main.java:63: error: illegal start of expression q.add(r { field.set(clone, clone_impl(value, seen, q)) }); ^ /root/JavaX-Caches/tmp_1175211523/main.java:65: error: <identifier> expected c = c.getSuperclass(); ^ /root/JavaX-Caches/tmp_1175211523/main.java:67: error: class, interface, or enum expected ret clone; ^ /root/JavaX-Caches/tmp_1175211523/main.java:68: error: class, interface, or enum expected } ^ 48 errors