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

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

/root/JavaX-Caches/tmp_50444999/main.java:1: error: class, interface, or enum expected srecord noeq G22RegionThinner(IImageRegion<?> originalRegion) is Steppable { ^ /root/JavaX-Caches/tmp_50444999/main.java:6: error: class, interface, or enum expected bool[] pixels; ^ /root/JavaX-Caches/tmp_50444999/main.java:8: error: class, interface, or enum expected gettable IImageRegion region = new { ^ /root/JavaX-Caches/tmp_50444999/main.java:9: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_50444999/main.java:9: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_50444999/main.java:11: error: class, interface, or enum expected public bool contains(int x, int y) { ^ /root/JavaX-Caches/tmp_50444999/main.java:13: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:15: error: class, interface, or enum expected public ItIt<Pt> pixelIterator() { ^ /root/JavaX-Caches/tmp_50444999/main.java:19: error: class, interface, or enum expected public Pt get() { ^ /root/JavaX-Caches/tmp_50444999/main.java:20: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_50444999/main.java:20: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_50444999/main.java:23: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_50444999/main.java:24: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:29: error: class, interface, or enum expected int idx(int x, int y) { ^ /root/JavaX-Caches/tmp_50444999/main.java:31: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:35: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:39: error: class, interface, or enum expected bounds = originalRegion.bounds(); ^ /root/JavaX-Caches/tmp_50444999/main.java:40: error: class, interface, or enum expected pixels = new bool[area(bounds)]; ^ /root/JavaX-Caches/tmp_50444999/main.java:41: error: class, interface, or enum expected for (Pt p : originalRegion.pixelIterator()) ^ /root/JavaX-Caches/tmp_50444999/main.java:43: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:47: error: class, interface, or enum expected public bool step() { ^ /root/JavaX-Caches/tmp_50444999/main.java:50: error: class, interface, or enum expected change = false; ^ /root/JavaX-Caches/tmp_50444999/main.java:52: error: class, interface, or enum expected L<PtBuffer> traces = g22_allBorderTraces_withDiagonals(region); ^ /root/JavaX-Caches/tmp_50444999/main.java:54: error: class, interface, or enum expected for (points : traces) { ^ /root/JavaX-Caches/tmp_50444999/main.java:57: error: class, interface, or enum expected for i over points: { ^ /root/JavaX-Caches/tmp_50444999/main.java:59: error: class, interface, or enum expected if (deletableBorderPoint(points, i)) { ^ /root/JavaX-Caches/tmp_50444999/main.java:61: error: class, interface, or enum expected pixels[idx(p.x, p.y)] = false; ^ /root/JavaX-Caches/tmp_50444999/main.java:62: error: class, interface, or enum expected set change; ^ /root/JavaX-Caches/tmp_50444999/main.java:63: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:69: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:73: error: class, interface, or enum expected Pt lastPoint = cyclicGet(points, i-1); ^ /root/JavaX-Caches/tmp_50444999/main.java:74: error: class, interface, or enum expected Pt p = points.get(i); ^ /root/JavaX-Caches/tmp_50444999/main.java:75: error: class, interface, or enum expected Pt diff = ptDiff(p, lastPoint); ^ /root/JavaX-Caches/tmp_50444999/main.java:76: error: class, interface, or enum expected Pt l = ptPlus(p, rotatePtLeft(diff)); ^ /root/JavaX-Caches/tmp_50444999/main.java:77: error: class, interface, or enum expected Pt r = ptPlus(p, rotatePtRight(diff)); ^ /root/JavaX-Caches/tmp_50444999/main.java:78: error: class, interface, or enum expected bool deletable = !range.contains(l) && region.contains(l) ^ /root/JavaX-Caches/tmp_50444999/main.java:80: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(+range, +p, +l, +r, +deletable); ^ /root/JavaX-Caches/tmp_50444999/main.java:81: error: class, interface, or enum expected ret deletable; ^ /root/JavaX-Caches/tmp_50444999/main.java:82: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:86: error: class, interface, or enum expected Pt p = points.get(i); ^ /root/JavaX-Caches/tmp_50444999/main.java:89: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_50444999/main.java:89: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_50444999/main.java:89: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_50444999/main.java:95: error: class, interface, or enum expected if (region.contains(p2.x, p2.y) ^ /root/JavaX-Caches/tmp_50444999/main.java:98: error: class, interface, or enum expected ret true; ^ /root/JavaX-Caches/tmp_50444999/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:103: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_50444999/main.java:105: error: class, interface, or enum expected IImageRegion get() { ret region; } ^ 50 errors