Wrote /root/JavaX-Caches/tmp_758669258/main.java - 2497 bytes (written=2497, should be 2497) 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:/root/.tinybrain/snippet-cache/1400546.jar:/root/.tinybrain/snippet-cache/1400547.jar:/root/.tinybrain/snippet-cache/1400548.jar:/root/.tinybrain/snippet-cache/1400555.jar -d /root/JavaX-Caches/tmp_1315405258 /root/JavaX-Caches/tmp_758669258/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_758669258/main.java:1: error: class, interface, or enum expected srecord noeq JG22NetworkPort(G22Utils g22utils, JG22NetworkElement element, G22NetworkElement.Port port) > JPanel { ^ /root/JavaX-Caches/tmp_758669258/main.java:4: error: class, interface, or enum expected Color outputColor() { ret Color.green; } ^ /root/JavaX-Caches/tmp_758669258/main.java:4: error: class, interface, or enum expected Color outputColor() { ret Color.green; } ^ /root/JavaX-Caches/tmp_758669258/main.java:5: error: class, interface, or enum expected Color inputColor() { ret Color.red; } ^ /root/JavaX-Caches/tmp_758669258/main.java:9: error: class, interface, or enum expected componentPopupMenuItems(this, ^ /root/JavaX-Caches/tmp_758669258/main.java:14: error: class, interface, or enum expected onMouseDown(this, event -> { ^ /root/JavaX-Caches/tmp_758669258/main.java:16: error: class, interface, or enum expected dragger.updatePosition = (x, y) -> { ^ /root/JavaX-Caches/tmp_758669258/main.java:18: error: class, interface, or enum expected Rect r = toRect(main getBounds(element.visualize())); ^ /root/JavaX-Caches/tmp_758669258/main.java:20: error: class, interface, or enum expected double dTop = distancePointToLineSegment(pt(r.x, r.y), pt(r.x2(), r.y), p); ^ /root/JavaX-Caches/tmp_758669258/main.java:21: error: class, interface, or enum expected double dBottom = distancePointToLineSegment(pt(r.x, r.y2()), pt(r.x2(), r.y2()), p); ^ /root/JavaX-Caches/tmp_758669258/main.java:22: error: class, interface, or enum expected double dLeft = distancePointToLineSegment(pt(r.x, r.y), pt(r.x, r.y2()), p); ^ /root/JavaX-Caches/tmp_758669258/main.java:23: error: class, interface, or enum expected double dRight = distancePointToLineSegment(pt(r.x2(), r.y), pt(r.x2(), r.y2()), p); ^ /root/JavaX-Caches/tmp_758669258/main.java:25: error: class, interface, or enum expected double min = doubleMin(dTop, dBottom, dLeft, dRight); ^ /root/JavaX-Caches/tmp_758669258/main.java:26: error: class, interface, or enum expected DoublePt pos = doublePt( ^ /root/JavaX-Caches/tmp_758669258/main.java:30: error: class, interface, or enum expected if (min == dTop) ^ /root/JavaX-Caches/tmp_758669258/main.java:32: error: class, interface, or enum expected else if (min == dBottom) ^ /root/JavaX-Caches/tmp_758669258/main.java:34: error: class, interface, or enum expected else if (min == dLeft) ^ /root/JavaX-Caches/tmp_758669258/main.java:36: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_758669258/main.java:39: error: class, interface, or enum expected port.position(pos); ^ /root/JavaX-Caches/tmp_758669258/main.java:40: error: class, interface, or enum expected }; ^ /root/JavaX-Caches/tmp_758669258/main.java:41: error: class, interface, or enum expected dragger.bringToFront(true).start(); ^ /root/JavaX-Caches/tmp_758669258/main.java:42: error: class, interface, or enum expected }); ^ /root/JavaX-Caches/tmp_758669258/main.java:44: error: class, interface, or enum expected update(); ^ /root/JavaX-Caches/tmp_758669258/main.java:45: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_758669258/main.java:49: error: class, interface, or enum expected setOpaque(true); ^ /root/JavaX-Caches/tmp_758669258/main.java:50: error: class, interface, or enum expected setBackground(port.isOutput() ? outputColor() : inputColor()); ^ /root/JavaX-Caches/tmp_758669258/main.java:51: error: class, interface, or enum expected setSize(size, size); ^ /root/JavaX-Caches/tmp_758669258/main.java:53: error: class, interface, or enum expected Rect r = toRect(main getBounds(element.visualize())); ^ /root/JavaX-Caches/tmp_758669258/main.java:54: error: class, interface, or enum expected r = growRectTopAndLeft(r, size); ^ /root/JavaX-Caches/tmp_758669258/main.java:55: error: class, interface, or enum expected setLocation(r.x+iround(port.position.x*r.w), ^ /root/JavaX-Caches/tmp_758669258/main.java:57: error: class, interface, or enum expected setToolTip(this, str(port)); ^ /root/JavaX-Caches/tmp_758669258/main.java:58: error: class, interface, or enum expected _print("Port " + port.name + " : " + getBounds()); ^ /root/JavaX-Caches/tmp_758669258/main.java:59: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_758669258/main.java:63: error: class, interface, or enum expected if (port.isOutput()) ^ /root/JavaX-Caches/tmp_758669258/main.java:65: error: class, interface, or enum expected else ^ /root/JavaX-Caches/tmp_758669258/main.java:67: error: class, interface, or enum expected var value = element.parent.networkInstance.getObjectForBlueprint(e); ^ /root/JavaX-Caches/tmp_758669258/main.java:68: error: class, interface, or enum expected showFrame("Port value", G22JavaObjectVisualizer(g22utils, value)); ^ /root/JavaX-Caches/tmp_758669258/main.java:69: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_758669258/main.java:73: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_758669258/main.java:77: error: class, interface, or enum expected } ^ 40 errors