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

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

/root/JavaX-Caches/tmp_728178887/main.java:1: error: class, interface, or enum expected sclass ImageSurfaceWithXMarkers extends ImageSurface { ^ /root/JavaX-Caches/tmp_728178887/main.java:3: error: class, interface, or enum expected Runnable onMarkersChanged; ^ /root/JavaX-Caches/tmp_728178887/main.java:5: error: class, interface, or enum expected *(BufferedImage img, Collection<? extends Number> _markers) { ^ /root/JavaX-Caches/tmp_728178887/main.java:7: error: class, interface, or enum expected addAll(this.markers, allToFloat(_markers)); ^ /root/JavaX-Caches/tmp_728178887/main.java:8: error: class, interface, or enum expected overlay = voidfunc(Graphics2D g) { ^ /root/JavaX-Caches/tmp_728178887/main.java:10: error: class, interface, or enum expected for (float x : markers) { ^ /root/JavaX-Caches/tmp_728178887/main.java:12: error: class, interface, or enum expected g.drawLine(p.x, 0, p.x, getHeight()-1); ^ /root/JavaX-Caches/tmp_728178887/main.java:13: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_728178887/main.java:15: error: class, interface, or enum expected disableImageSurfaceSelector(this); ^ /root/JavaX-Caches/tmp_728178887/main.java:16: error: class, interface, or enum expected imageSurfaceOnMouseDrag(this, new VF1<Pt> { ^ /root/JavaX-Caches/tmp_728178887/main.java:19: error: class, interface, or enum expected public void get(Pt p) { ^ /root/JavaX-Caches/tmp_728178887/main.java:21: error: class, interface, or enum expected Pt pComponent = pointToComponentCoordinates(p.x, p.y); ^ /root/JavaX-Caches/tmp_728178887/main.java:22: error: class, interface, or enum expected if (pointFarOutsideOfComponent(ImageSurfaceWithXMarkers.this, pComponent) || pointOutsideOfImage(image, p)) { ^ /root/JavaX-Caches/tmp_728178887/main.java:25: error: class, interface, or enum expected fireMarkersChanged(); ^ /root/JavaX-Caches/tmp_728178887/main.java:26: error: class, interface, or enum expected _print("Markers: " + l(markers)); ^ /root/JavaX-Caches/tmp_728178887/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_728178887/main.java:29: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_728178887/main.java:32: error: class, interface, or enum expected Float m = marker; ^ /root/JavaX-Caches/tmp_728178887/main.java:33: error: class, interface, or enum expected marker = (float) p.x; ^ /root/JavaX-Caches/tmp_728178887/main.java:34: error: class, interface, or enum expected if (m == null) { ^ /root/JavaX-Caches/tmp_728178887/main.java:36: error: class, interface, or enum expected _print("Markers: " + l(markers)); ^ /root/JavaX-Caches/tmp_728178887/main.java:37: error: class, interface, or enum expected } else ^ /root/JavaX-Caches/tmp_728178887/main.java:39: error: class, interface, or enum expected fireMarkersChanged(); ^ /root/JavaX-Caches/tmp_728178887/main.java:40: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_728178887/main.java:42: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_728178887/main.java:46: error: class, interface, or enum expected pcallF(onMarkersChanged); ^ /root/JavaX-Caches/tmp_728178887/main.java:47: error: class, interface, or enum expected } ^ 27 errors