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

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

/root/JavaX-Caches/tmp_1949533383/main.java:1: error: class, interface, or enum expected srecord noeq G22RegionThinner_v2<Img extends WidthAndHeight>(IImageRegion<Img> originalRegion) is Steppable { ^ /root/JavaX-Caches/tmp_1949533383/main.java:3: error: class, interface, or enum expected IImageRegion<Img> region; ^ /root/JavaX-Caches/tmp_1949533383/main.java:5: error: class, interface, or enum expected settable bool debug; ^ /root/JavaX-Caches/tmp_1949533383/main.java:6: error: class, interface, or enum expected settable bool doFinalStep = true; ^ /root/JavaX-Caches/tmp_1949533383/main.java:7: error: class, interface, or enum expected settable int lastPhaseThreshold1 = 2; ^ /root/JavaX-Caches/tmp_1949533383/main.java:8: error: class, interface, or enum expected settable int lastPhaseThreshold = 5; ^ /root/JavaX-Caches/tmp_1949533383/main.java:10: error: class, interface, or enum expected settable byte[] lookupTable; ^ /root/JavaX-Caches/tmp_1949533383/main.java:16: error: class, interface, or enum expected byte[] pixels; ^ /root/JavaX-Caches/tmp_1949533383/main.java:18: error: class, interface, or enum expected int idx(int x, int y) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:20: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:21: error: class, interface, or enum expected int idx(Pt p) { ret idx(p.x, p.y); } ^ /root/JavaX-Caches/tmp_1949533383/main.java:25: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:29: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:33: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:37: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:41: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:45: error: class, interface, or enum expected pixels[idx(x, y)] = 0; ^ /root/JavaX-Caches/tmp_1949533383/main.java:46: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_1949533383/main.java:47: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:51: error: class, interface, or enum expected bounds = originalRegion.bounds(); ^ /root/JavaX-Caches/tmp_1949533383/main.java:52: error: class, interface, or enum expected pixels = new byte[area(bounds)]; ^ /root/JavaX-Caches/tmp_1949533383/main.java:53: error: class, interface, or enum expected for (Pt p : originalRegion.pixelIterator()) ^ /root/JavaX-Caches/tmp_1949533383/main.java:56: error: class, interface, or enum expected region = new ThinnedRegion; ^ /root/JavaX-Caches/tmp_1949533383/main.java:57: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:59: error: '{' expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_1949533383/main.java:59: error: class, interface, or enum expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_1949533383/main.java:60: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_1949533383/main.java:60: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_1949533383/main.java:61: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_1949533383/main.java:61: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_1949533383/main.java:63: error: class, interface, or enum expected public bool contains(int x, int y) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:65: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:67: error: class, interface, or enum expected public ItIt<Pt> pixelIterator() { ^ /root/JavaX-Caches/tmp_1949533383/main.java:71: error: class, interface, or enum expected public Pt get() { ^ /root/JavaX-Caches/tmp_1949533383/main.java:72: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_1949533383/main.java:72: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_1949533383/main.java:75: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_1949533383/main.java:76: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:78: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:81: error: class, interface, or enum expected public bool step() { ^ /root/JavaX-Caches/tmp_1949533383/main.java:84: error: class, interface, or enum expected bool change = finalStep(); ^ /root/JavaX-Caches/tmp_1949533383/main.java:85: error: class, interface, or enum expected change |= phase1step(); ^ /root/JavaX-Caches/tmp_1949533383/main.java:86: error: class, interface, or enum expected ret change; ^ /root/JavaX-Caches/tmp_1949533383/main.java:87: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:91: error: class, interface, or enum expected for (points : traces) ^ /root/JavaX-Caches/tmp_1949533383/main.java:95: error: class, interface, or enum expected new PtBuffer toDelete; ^ /root/JavaX-Caches/tmp_1949533383/main.java:97: error: class, interface, or enum expected for (points : traces) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:99: error: class, interface, or enum expected BitSet deletable = emptyBitSet(nPoints); ^ /root/JavaX-Caches/tmp_1949533383/main.java:100: error: class, interface, or enum expected for i to nPoints: { ^ /root/JavaX-Caches/tmp_1949533383/main.java:105: error: class, interface, or enum expected if (del) ^ /root/JavaX-Caches/tmp_1949533383/main.java:107: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:115: error: class, interface, or enum expected Pt prev = ptMinus(cyclicGet(points, i-1), p); ^ /root/JavaX-Caches/tmp_1949533383/main.java:116: error: class, interface, or enum expected Pt next = ptMinus(cyclicGet(points, i+1), p); ^ /root/JavaX-Caches/tmp_1949533383/main.java:117: error: class, interface, or enum expected int dir1 = onePathLookupDirection(prev); ^ /root/JavaX-Caches/tmp_1949533383/main.java:118: error: class, interface, or enum expected int dir2 = onePathLookupDirection(next); ^ /root/JavaX-Caches/tmp_1949533383/main.java:119: error: class, interface, or enum expected int diff = mod(dir2-dir1, 8); ^ /root/JavaX-Caches/tmp_1949533383/main.java:120: error: class, interface, or enum expected if (debug) printVars("special case", +p, +prev, +next, +dir1, +dir2, +diff); ^ /root/JavaX-Caches/tmp_1949533383/main.java:121: error: class, interface, or enum expected if (diff == 1 || diff == 7) ^ /root/JavaX-Caches/tmp_1949533383/main.java:123: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:128: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:133: error: class, interface, or enum expected ret nempty(toDelete); ^ /root/JavaX-Caches/tmp_1949533383/main.java:134: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:139: error: class, interface, or enum expected long p_long = pointsBuf.get(i); ^ /root/JavaX-Caches/tmp_1949533383/main.java:143: error: class, interface, or enum expected if (p_long == cyclicGet(pointsBuf, i-2) ^ /root/JavaX-Caches/tmp_1949533383/main.java:146: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_1949533383/main.java:147: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:150: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:150: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:150: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:152: error: class, interface, or enum expected byte value = getPixel(p2_long); ^ /root/JavaX-Caches/tmp_1949533383/main.java:153: error: class, interface, or enum expected if (value == 2 && !rangeContains(pointsBuf, i, p2_long)) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:156: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_1949533383/main.java:157: error: class, interface, or enum expected } else if (value == 1) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:159: error: class, interface, or enum expected surroundingInnerPixels++; ^ /root/JavaX-Caches/tmp_1949533383/main.java:160: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:168: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:171: error: class, interface, or enum expected for (int j = i-3; j <= i+3; j++) ^ /root/JavaX-Caches/tmp_1949533383/main.java:171: error: class, interface, or enum expected for (int j = i-3; j <= i+3; j++) ^ /root/JavaX-Caches/tmp_1949533383/main.java:174: error: class, interface, or enum expected false; ^ /root/JavaX-Caches/tmp_1949533383/main.java:175: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:179: error: class, interface, or enum expected Pt p = points.get(i); ^ /root/JavaX-Caches/tmp_1949533383/main.java:182: error: class, interface, or enum expected if (eq(range.get(1), p) || eq(range.get(5), p)) false; ^ /root/JavaX-Caches/tmp_1949533383/main.java:184: error: class, interface, or enum expected int surroundingBorderPixels = 0, surroundingInnerPixels = 0; ^ /root/JavaX-Caches/tmp_1949533383/main.java:185: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:185: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:185: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1949533383/main.java:187: error: class, interface, or enum expected byte value = getPixel(p2); ^ /root/JavaX-Caches/tmp_1949533383/main.java:188: error: class, interface, or enum expected if (value == 2 && !range.contains(p2)) ^ /root/JavaX-Caches/tmp_1949533383/main.java:190: error: class, interface, or enum expected else if (value == 1) ^ /root/JavaX-Caches/tmp_1949533383/main.java:192: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:196: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(+p, +surroundingInnerPixels, +surroundingBorderPixels, +deletable, +range); ^ /root/JavaX-Caches/tmp_1949533383/main.java:197: error: class, interface, or enum expected ret deletable; ^ /root/JavaX-Caches/tmp_1949533383/main.java:198: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1949533383/main.java:200: error: class, interface, or enum expected IImageRegion region aka get() { ret or(region, originalRegion); } ^ /root/JavaX-Caches/tmp_1949533383/main.java:206: error: class, interface, or enum expected if (lookupTable == null) ^ /root/JavaX-Caches/tmp_1949533383/main.java:211: error: class, interface, or enum expected bool change; ^ /root/JavaX-Caches/tmp_1949533383/main.java:212: error: class, interface, or enum expected int x1 = bounds.x, x2 = bounds.x2(); ^ /root/JavaX-Caches/tmp_1949533383/main.java:213: error: class, interface, or enum expected int y1 = bounds.y, y2 = bounds.y2(); ^ /root/JavaX-Caches/tmp_1949533383/main.java:214: error: class, interface, or enum expected printVars ifdef G22RegionThinner_lastPhase_debug("finalStep", +x1, +y1, +x2, +y2); ^ /root/JavaX-Caches/tmp_1949533383/main.java:216: error: class, interface, or enum expected var pingSource = pingSource(); ^ 100 errors only showing the first 100 errors, of 112 total; use -Xmaxerrs if you would like to see more