Wrote /root/JavaX-Caches/tmp_524190003/main.java - 1896 bytes (written=1896, should be 1896)
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_1536458466 /root/JavaX-Caches/tmp_524190003/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_524190003/main.java:1: error: class, interface, or enum expected
asclass ImageSurfaceTool > MouseAdapter {
^
/root/JavaX-Caches/tmp_524190003/main.java:3: error: class, interface, or enum expected
Point startingPoint;
^
/root/JavaX-Caches/tmp_524190003/main.java:4: error: class, interface, or enum expected
bool enabled = true;
^
/root/JavaX-Caches/tmp_524190003/main.java:5: error: class, interface, or enum expected
static bool verbose = false;
^
/root/JavaX-Caches/tmp_524190003/main.java:7: error: class, interface, or enum expected
*(ImageSurface is) {
^
/root/JavaX-Caches/tmp_524190003/main.java:9: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:11: error: class, interface, or enum expected
bool isMouseHandler() { true; }
^
/root/JavaX-Caches/tmp_524190003/main.java:15: error: class, interface, or enum expected
is.removeMouseHandlers();
^
/root/JavaX-Caches/tmp_524190003/main.java:16: error: class, interface, or enum expected
is.setMouseHandler(this);
^
/root/JavaX-Caches/tmp_524190003/main.java:17: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:22: error: class, interface, or enum expected
is.removeMouseMotionListener(s);
^
/root/JavaX-Caches/tmp_524190003/main.java:23: error: class, interface, or enum expected
is.tools.remove(s);
^
/root/JavaX-Caches/tmp_524190003/main.java:24: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:29: error: class, interface, or enum expected
public void mousePressed(MouseEvent evt) {
^
/root/JavaX-Caches/tmp_524190003/main.java:31: error: class, interface, or enum expected
if (evt.getButton() != MouseEvent.BUTTON1) return;
^
/root/JavaX-Caches/tmp_524190003/main.java:32: error: class, interface, or enum expected
if (enabled)
^
/root/JavaX-Caches/tmp_524190003/main.java:34: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:36: error: class, interface, or enum expected
public void mouseDragged(MouseEvent e) {
^
/root/JavaX-Caches/tmp_524190003/main.java:38: error: class, interface, or enum expected
if (startingPoint != null) {
^
/root/JavaX-Caches/tmp_524190003/main.java:40: error: class, interface, or enum expected
Rectangle r = new Rectangle(startingPoint, new Dimension(endPoint.x-startingPoint.x+1, endPoint.y-startingPoint.y+1));
^
/root/JavaX-Caches/tmp_524190003/main.java:41: error: class, interface, or enum expected
normalize(r);
^
/root/JavaX-Caches/tmp_524190003/main.java:42: error: class, interface, or enum expected
r.width = min(r.width, is.getImage().getWidth()-r.x);
^
/root/JavaX-Caches/tmp_524190003/main.java:43: error: class, interface, or enum expected
r.height = min(r.height, is.getImage().getHeight()-r.y);
^
/root/JavaX-Caches/tmp_524190003/main.java:44: error: class, interface, or enum expected
is.setSelection(r);
^
/root/JavaX-Caches/tmp_524190003/main.java:45: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:47: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:49: error: class, interface, or enum expected
public static void normalize(Rectangle r) {
^
/root/JavaX-Caches/tmp_524190003/main.java:52: error: class, interface, or enum expected
r.width = -r.width;
^
/root/JavaX-Caches/tmp_524190003/main.java:53: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:56: error: class, interface, or enum expected
r.height = -r.height;
^
/root/JavaX-Caches/tmp_524190003/main.java:57: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:60: error: class, interface, or enum expected
public void mouseReleased(MouseEvent e) {
^
/root/JavaX-Caches/tmp_524190003/main.java:62: error: class, interface, or enum expected
mouseDragged(e);
^
/root/JavaX-Caches/tmp_524190003/main.java:63: error: class, interface, or enum expected
if (getPoint(e).equals(startingPoint))
^
/root/JavaX-Caches/tmp_524190003/main.java:65: error: class, interface, or enum expected
startingPoint = null;
^
/root/JavaX-Caches/tmp_524190003/main.java:66: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_524190003/main.java:70: error: class, interface, or enum expected
}
^
37 errors