Wrote /root/JavaX-Caches/tmp_1895301381/main.java - 1879 bytes (written=1879, should be 1879)
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_1191758058 /root/JavaX-Caches/tmp_1895301381/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1895301381/main.java:1: error: class, interface, or enum expected
please include function showImageWithSelections.
^
/root/JavaX-Caches/tmp_1895301381/main.java:5: error: class, interface, or enum expected
static ImageSurface showImageWithRecognizedTexts(BufferedImage img, ImageSurface _is, final L rects) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:5: error: class, interface, or enum expected
static ImageSurface showImageWithRecognizedTexts(BufferedImage img, ImageSurface _is, final L rects) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:6: error: class, interface, or enum expected
final ImageSurface is = showImage(img, _is);
^
/root/JavaX-Caches/tmp_1895301381/main.java:7: error: class, interface, or enum expected
is.specialPurposed = true;
^
/root/JavaX-Caches/tmp_1895301381/main.java:8: error: class, interface, or enum expected
final new Var highlighted;
^
/root/JavaX-Caches/tmp_1895301381/main.java:9: error: class, interface, or enum expected
showImageWithSelections_highlighted = highlighted;
^
/root/JavaX-Caches/tmp_1895301381/main.java:10: error: class, interface, or enum expected
is.overlay = voidfunc(Graphics2D g) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:12: error: class, interface, or enum expected
antiAliasOn(g);
^
/root/JavaX-Caches/tmp_1895301381/main.java:13: error: class, interface, or enum expected
temp tempGraphicsTransform(g);
^
/root/JavaX-Caches/tmp_1895301381/main.java:14: error: class, interface, or enum expected
g.scale(is.zoomX, is.zoomY);
^
/root/JavaX-Caches/tmp_1895301381/main.java:15: error: class, interface, or enum expected
Font font = g.getFont().deriveFont(12);
^
/root/JavaX-Caches/tmp_1895301381/main.java:16: error: class, interface, or enum expected
g.setFont(font);
^
/root/JavaX-Caches/tmp_1895301381/main.java:17: error: class, interface, or enum expected
FontMetrics fm = g.getFontMetrics();
^
/root/JavaX-Caches/tmp_1895301381/main.java:18: error: class, interface, or enum expected
for (RecognizedText r : cloneList(rects)) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:21: error: class, interface, or enum expected
S text = r.text!;
^
/root/JavaX-Caches/tmp_1895301381/main.java:22: error: class, interface, or enum expected
if (nempty(text) && neq(text, ocr_unknownCharacterPlaceholder())) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:25: error: class, interface, or enum expected
drawTextWithOutline(g, r.text!, p.x, p.y, Color.white, Color.black);
^
/root/JavaX-Caches/tmp_1895301381/main.java:26: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1895301381/main.java:30: error: class, interface, or enum expected
};
^
/root/JavaX-Caches/tmp_1895301381/main.java:31: error: class, interface, or enum expected
imageSurfaceOnMouseMove(is, voidfunc(Pt p) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:32: error: unclosed character literal
/*repaintIf(is,*/ setVarIfNeq(highlighted, smallestRectContaining(collect(rects, 'r), p))/*)*/;
^
/root/JavaX-Caches/tmp_1895301381/main.java:33: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_1895301381/main.java:35: error: class, interface, or enum expected
imageSurfacePopupMenuOnSelection_top(is, voidfunc(JPopupMenu menu, final Rect selection) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:35: error: class, interface, or enum expected
imageSurfacePopupMenuOnSelection_top(is, voidfunc(JPopupMenu menu, final Rect selection) {
^
/root/JavaX-Caches/tmp_1895301381/main.java:40: error: class, interface, or enum expected
});
^
/root/JavaX-Caches/tmp_1895301381/main.java:42: error: class, interface, or enum expected
ret repaint(is);
^
/root/JavaX-Caches/tmp_1895301381/main.java:43: error: class, interface, or enum expected
}
^
28 errors