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

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

/root/JavaX-Caches/tmp_1243939552/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_1243939552/main.java:3: error: class, interface, or enum expected IImageRegion<Img> region; ^ /root/JavaX-Caches/tmp_1243939552/main.java:4: error: class, interface, or enum expected bool phase1done; ^ /root/JavaX-Caches/tmp_1243939552/main.java:6: error: class, interface, or enum expected settable bool debug; ^ /root/JavaX-Caches/tmp_1243939552/main.java:7: error: class, interface, or enum expected settable bool doFinalStep = true; ^ /root/JavaX-Caches/tmp_1243939552/main.java:8: error: class, interface, or enum expected settable int lastPhaseThreshold1 = 2; ^ /root/JavaX-Caches/tmp_1243939552/main.java:9: error: class, interface, or enum expected settable int lastPhaseThreshold = 5; ^ /root/JavaX-Caches/tmp_1243939552/main.java:11: error: class, interface, or enum expected settable byte[] lookupTable; ^ /root/JavaX-Caches/tmp_1243939552/main.java:17: error: class, interface, or enum expected byte[] pixels; ^ /root/JavaX-Caches/tmp_1243939552/main.java:19: error: class, interface, or enum expected int idx(int x, int y) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:21: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:22: error: class, interface, or enum expected int idx(Pt p) { ret idx(p.x, p.y); } ^ /root/JavaX-Caches/tmp_1243939552/main.java:26: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:30: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:34: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:38: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:42: error: class, interface, or enum expected pixels[idx(x, y)] = 0; ^ /root/JavaX-Caches/tmp_1243939552/main.java:43: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_1243939552/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:48: error: class, interface, or enum expected bounds = originalRegion.bounds(); ^ /root/JavaX-Caches/tmp_1243939552/main.java:49: error: class, interface, or enum expected pixels = new byte[area(bounds)]; ^ /root/JavaX-Caches/tmp_1243939552/main.java:50: error: class, interface, or enum expected for (Pt p : originalRegion.pixelIterator()) ^ /root/JavaX-Caches/tmp_1243939552/main.java:53: error: class, interface, or enum expected region = new ThinnedRegion; ^ /root/JavaX-Caches/tmp_1243939552/main.java:54: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:56: error: '{' expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_1243939552/main.java:56: error: class, interface, or enum expected class ThinnedRegion is IImageRegion<Img> { ^ /root/JavaX-Caches/tmp_1243939552/main.java:57: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_1243939552/main.java:57: error: class, interface, or enum expected public Img image() { ret originalRegion.image(); } ^ /root/JavaX-Caches/tmp_1243939552/main.java:58: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_1243939552/main.java:58: error: class, interface, or enum expected public Rect bounds() { ret bounds; } ^ /root/JavaX-Caches/tmp_1243939552/main.java:60: error: class, interface, or enum expected public bool contains(int x, int y) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:64: error: class, interface, or enum expected public ItIt<Pt> pixelIterator() { ^ /root/JavaX-Caches/tmp_1243939552/main.java:68: error: class, interface, or enum expected public Pt get() { ^ /root/JavaX-Caches/tmp_1243939552/main.java:69: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_1243939552/main.java:69: error: class, interface, or enum expected for (; idx < pixels.length; idx++) ^ /root/JavaX-Caches/tmp_1243939552/main.java:72: error: class, interface, or enum expected null; ^ /root/JavaX-Caches/tmp_1243939552/main.java:73: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:75: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:78: error: class, interface, or enum expected public bool step() { ^ /root/JavaX-Caches/tmp_1243939552/main.java:81: error: class, interface, or enum expected if (phase1done) ^ /root/JavaX-Caches/tmp_1243939552/main.java:84: error: class, interface, or enum expected L<PtBuffer> traces = g22_allBorderTraces_withDiagonals(region); ^ /root/JavaX-Caches/tmp_1243939552/main.java:85: error: class, interface, or enum expected for (points : traces) ^ /root/JavaX-Caches/tmp_1243939552/main.java:89: error: class, interface, or enum expected new PtBuffer toDelete; ^ /root/JavaX-Caches/tmp_1243939552/main.java:91: error: class, interface, or enum expected for (points : traces) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:93: error: class, interface, or enum expected BitSet deletable = emptyBitSet(nPoints); ^ /root/JavaX-Caches/tmp_1243939552/main.java:94: error: class, interface, or enum expected for i to nPoints: { ^ /root/JavaX-Caches/tmp_1243939552/main.java:97: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:105: error: class, interface, or enum expected Pt prev = ptMinus(cyclicGet(points, i-1), p); ^ /root/JavaX-Caches/tmp_1243939552/main.java:106: error: class, interface, or enum expected Pt next = ptMinus(cyclicGet(points, i+1), p); ^ /root/JavaX-Caches/tmp_1243939552/main.java:107: error: class, interface, or enum expected int dir1 = onePathLookupDirection(prev); ^ /root/JavaX-Caches/tmp_1243939552/main.java:108: error: class, interface, or enum expected int dir2 = onePathLookupDirection(next); ^ /root/JavaX-Caches/tmp_1243939552/main.java:109: error: class, interface, or enum expected int diff = mod(dir2-dir1, 8); ^ /root/JavaX-Caches/tmp_1243939552/main.java:110: error: class, interface, or enum expected if (debug) printVars("special case", +p, +prev, +next, +dir1, +dir2, +diff); ^ /root/JavaX-Caches/tmp_1243939552/main.java:111: error: class, interface, or enum expected if (diff == 1 || diff == 7) ^ /root/JavaX-Caches/tmp_1243939552/main.java:113: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:118: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:123: error: class, interface, or enum expected if (empty(toDelete)) ^ /root/JavaX-Caches/tmp_1243939552/main.java:125: error: class, interface, or enum expected true; ^ /root/JavaX-Caches/tmp_1243939552/main.java:126: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:130: error: class, interface, or enum expected Pt p = points.get(i); ^ /root/JavaX-Caches/tmp_1243939552/main.java:133: error: class, interface, or enum expected if (eq(range.get(1), p) || eq(range.get(5), p)) false; ^ /root/JavaX-Caches/tmp_1243939552/main.java:135: error: class, interface, or enum expected int surroundingBorderPixels = 0, surroundingInnerPixels = 0; ^ /root/JavaX-Caches/tmp_1243939552/main.java:136: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:136: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:136: error: class, interface, or enum expected for (int dir = 1; dir <= 8; dir++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:138: error: class, interface, or enum expected byte value = getPixel(p2); ^ /root/JavaX-Caches/tmp_1243939552/main.java:139: error: class, interface, or enum expected if (value == 2 && !range.contains(p2)) ^ /root/JavaX-Caches/tmp_1243939552/main.java:141: error: class, interface, or enum expected else if (value == 1) ^ /root/JavaX-Caches/tmp_1243939552/main.java:143: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:147: error: class, interface, or enum expected printVars ifdef G22RegionThinner_debug(+p, +surroundingInnerPixels, +surroundingBorderPixels, +deletable, +range); ^ /root/JavaX-Caches/tmp_1243939552/main.java:148: error: class, interface, or enum expected ret deletable; ^ /root/JavaX-Caches/tmp_1243939552/main.java:149: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:151: error: class, interface, or enum expected IImageRegion region aka get() { ret or(region, originalRegion); } ^ /root/JavaX-Caches/tmp_1243939552/main.java:157: error: class, interface, or enum expected if (lookupTable == null) ^ /root/JavaX-Caches/tmp_1243939552/main.java:162: error: class, interface, or enum expected bool change; ^ /root/JavaX-Caches/tmp_1243939552/main.java:163: error: class, interface, or enum expected int x1 = bounds.x, x2 = bounds.x2(); ^ /root/JavaX-Caches/tmp_1243939552/main.java:164: error: class, interface, or enum expected int y1 = bounds.y, y2 = bounds.y2(); ^ /root/JavaX-Caches/tmp_1243939552/main.java:165: error: class, interface, or enum expected printVars ifdef G22RegionThinner_lastPhase_debug("finalStep", +x1, +y1, +x2, +y2); ^ /root/JavaX-Caches/tmp_1243939552/main.java:167: error: class, interface, or enum expected var pingSource = pingSource(); ^ /root/JavaX-Caches/tmp_1243939552/main.java:169: error: class, interface, or enum expected for (int y = y1; y < y2; y++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:169: error: class, interface, or enum expected for (int y = y1; y < y2; y++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:169: error: class, interface, or enum expected for (int y = y1; y < y2; y++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:171: error: class, interface, or enum expected for (int x = x1; x < x2; x++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:171: error: class, interface, or enum expected for (int x = x1; x < x2; x++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:171: error: class, interface, or enum expected for (int x = x1; x < x2; x++) { ^ /root/JavaX-Caches/tmp_1243939552/main.java:179: error: class, interface, or enum expected var imgPattern = ubyteFromBits( ^ /root/JavaX-Caches/tmp_1243939552/main.java:189: error: class, interface, or enum expected bool delete = getBit(lookupTable, imgPattern); ^ /root/JavaX-Caches/tmp_1243939552/main.java:191: error: class, interface, or enum expected printVars ifdef G22RegionThinner_lastPhase_debug( ^ /root/JavaX-Caches/tmp_1243939552/main.java:194: error: class, interface, or enum expected if (delete) ^ /root/JavaX-Caches/tmp_1243939552/main.java:196: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_1243939552/main.java:199: error: class, interface, or enum expected } ^ 92 errors