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

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

/root/JavaX-Caches/tmp_731653442/main.java:1: error: class, interface, or enum expected static void calAddAutoLayoutSwitch(CirclesAndLines cal, final Canvas canvas, O modifyLayout, bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:1: error: class, interface, or enum expected static void calAddAutoLayoutSwitch(CirclesAndLines cal, final Canvas canvas, O modifyLayout, bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:3: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_731653442/main.java:6: error: class, interface, or enum expected static new ThreadLocal<Bool> calAddAutoLayoutSwitch_center; ^ /root/JavaX-Caches/tmp_731653442/main.java:8: error: class, interface, or enum expected static void calAddAutoLayoutSwitch(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:8: error: class, interface, or enum expected static void calAddAutoLayoutSwitch(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:8: error: class, interface, or enum expected static void calAddAutoLayoutSwitch(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:8: error: class, interface, or enum expected static void calAddAutoLayoutSwitch(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:8: error: class, interface, or enum expected static void calAddAutoLayoutSwitch(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:10: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_731653442/main.java:12: error: class, interface, or enum expected static JPanel calAddAutoLayoutSwitch_make(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:12: error: class, interface, or enum expected static JPanel calAddAutoLayoutSwitch_make(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:12: error: class, interface, or enum expected static JPanel calAddAutoLayoutSwitch_make(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:12: error: class, interface, or enum expected static JPanel calAddAutoLayoutSwitch_make(final Var<CirclesAndLines> cal, final Canvas canvas, final O modifyLayout, final bool on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:13: error: class, interface, or enum expected final bool center = boolOptParam(calAddAutoLayoutSwitch_center); ^ /root/JavaX-Caches/tmp_731653442/main.java:15: error: class, interface, or enum expected ret swing(func -> JPanel { ^ /root/JavaX-Caches/tmp_731653442/main.java:18: error: class, interface, or enum expected if (l(cal->circles) <= 2) _layout.desiredLength = 0.45; ^ /root/JavaX-Caches/tmp_731653442/main.java:19: error: class, interface, or enum expected callF(modifyLayout, _layout); ^ /root/JavaX-Caches/tmp_731653442/main.java:21: error: class, interface, or enum expected final JCheckBox cb = jcheckbox("Auto-Layout", on); ^ /root/JavaX-Caches/tmp_731653442/main.java:22: error: class, interface, or enum expected final JButton btnNew = jbutton("Scramble", r { ^ /root/JavaX-Caches/tmp_731653442/main.java:24: error: class, interface, or enum expected updateCanvas(canvas); ^ /root/JavaX-Caches/tmp_731653442/main.java:25: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_731653442/main.java:26: error: class, interface, or enum expected final JCheckBox cb2 = jcheckbox("Center", center); ^ /root/JavaX-Caches/tmp_731653442/main.java:27: error: class, interface, or enum expected final JSpinner lineLength = setSpinnerStepSize(5, jspinner(iround(_layout.desiredLength*calAddAutoLayoutSwitch_scale), 1, 50)); ^ /root/JavaX-Caches/tmp_731653442/main.java:28: error: class, interface, or enum expected JPanel panel = jcenteredline(cb, btnNew, cb2, jlabel("Line length:"), lineLength); ^ /root/JavaX-Caches/tmp_731653442/main.java:29: error: class, interface, or enum expected awtCalcEvery2(canvas, 100, new Runnable { ^ /root/JavaX-Caches/tmp_731653442/main.java:31: error: class, interface, or enum expected CirclesAndLines lastCAL = cal!; ^ /root/JavaX-Caches/tmp_731653442/main.java:32: error: class, interface, or enum expected bool lastOn; ^ /root/JavaX-Caches/tmp_731653442/main.java:34: error: class, interface, or enum expected public void run() { ^ /root/JavaX-Caches/tmp_731653442/main.java:36: error: class, interface, or enum expected bool on = isChecked(cb); ^ /root/JavaX-Caches/tmp_731653442/main.java:37: error: class, interface, or enum expected if (on) { ^ /root/JavaX-Caches/tmp_731653442/main.java:40: error: class, interface, or enum expected layout = new CALSpringLayout(cal!); ^ /root/JavaX-Caches/tmp_731653442/main.java:41: error: class, interface, or enum expected layout.center = false; ^ /root/JavaX-Caches/tmp_731653442/main.java:42: error: class, interface, or enum expected callF(modifyLayout, layout); ^ /root/JavaX-Caches/tmp_731653442/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_731653442/main.java:45: error: class, interface, or enum expected if (!lastOn) layout.clear(); ^ /root/JavaX-Caches/tmp_731653442/main.java:46: error: class, interface, or enum expected layout.step(); ^ /root/JavaX-Caches/tmp_731653442/main.java:47: error: class, interface, or enum expected x = true; ^ /root/JavaX-Caches/tmp_731653442/main.java:48: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_731653442/main.java:50: error: class, interface, or enum expected if (isChecked(cb2)) { ^ /root/JavaX-Caches/tmp_731653442/main.java:52: error: class, interface, or enum expected x = true; ^ /root/JavaX-Caches/tmp_731653442/main.java:53: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_731653442/main.java:55: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_731653442/main.java:57: error: class, interface, or enum expected ret panel; ^ /root/JavaX-Caches/tmp_731653442/main.java:58: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_731653442/main.java:59: error: class, interface, or enum expected } ^ 46 errors