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

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

/root/JavaX-Caches/tmp_964860284/main.java:1: error: class, interface, or enum expected persistable sclass Image2BAsLongs is IBinaryImage { ^ /root/JavaX-Caches/tmp_964860284/main.java:3: error: class, interface, or enum expected gettable long[] pixels; ^ /root/JavaX-Caches/tmp_964860284/main.java:5: error: class, interface, or enum expected *(int *w, int *h, long[] *pixels) { cleanPixelArray(); } ^ /root/JavaX-Caches/tmp_964860284/main.java:5: error: class, interface, or enum expected *(int *w, int *h, long[] *pixels) { cleanPixelArray(); } ^ /root/JavaX-Caches/tmp_964860284/main.java:9: error: class, interface, or enum expected h = img.getHeight(); ^ /root/JavaX-Caches/tmp_964860284/main.java:10: error: class, interface, or enum expected pixels = longArrayFromBytes_littleEndian_flexLength(img.pixels); ^ /root/JavaX-Caches/tmp_964860284/main.java:11: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:15: error: class, interface, or enum expected h = img.getHeight(); ^ /root/JavaX-Caches/tmp_964860284/main.java:16: error: class, interface, or enum expected pixels = cloneLongArray(img.pixels); ^ /root/JavaX-Caches/tmp_964860284/main.java:17: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:21: error: class, interface, or enum expected h = img.getHeight(); ^ /root/JavaX-Caches/tmp_964860284/main.java:22: error: class, interface, or enum expected pixels = new long[(w*h+63)/64]; ^ /root/JavaX-Caches/tmp_964860284/main.java:23: error: class, interface, or enum expected for y to h: for x to w: ^ /root/JavaX-Caches/tmp_964860284/main.java:26: error: class, interface, or enum expected pixels[i/64] |= 1L << (i & 63); ^ /root/JavaX-Caches/tmp_964860284/main.java:27: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:32: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:36: error: class, interface, or enum expected w = img.w(); h = img.h(); ^ /root/JavaX-Caches/tmp_964860284/main.java:37: error: class, interface, or enum expected int n = w*h; ^ /root/JavaX-Caches/tmp_964860284/main.java:38: error: class, interface, or enum expected int nOut = (n+63)/64; ^ /root/JavaX-Caches/tmp_964860284/main.java:39: error: class, interface, or enum expected long[] pixels = this.pixels = new long[nOut]; ^ /root/JavaX-Caches/tmp_964860284/main.java:40: error: class, interface, or enum expected byte[] bwPixels = img.pixels; ^ /root/JavaX-Caches/tmp_964860284/main.java:41: error: class, interface, or enum expected int iIn = 0; ^ /root/JavaX-Caches/tmp_964860284/main.java:44: error: class, interface, or enum expected for (int iOut = 0; iOut < nOut-1; iOut++) { ^ /root/JavaX-Caches/tmp_964860284/main.java:44: error: class, interface, or enum expected for (int iOut = 0; iOut < nOut-1; iOut++) { ^ /root/JavaX-Caches/tmp_964860284/main.java:44: error: class, interface, or enum expected for (int iOut = 0; iOut < nOut-1; iOut++) { ^ /root/JavaX-Caches/tmp_964860284/main.java:46: error: class, interface, or enum expected for bit to 64: { ^ /root/JavaX-Caches/tmp_964860284/main.java:48: error: class, interface, or enum expected if (ubyteToInt(bwPixels[iIn++]) >= threshold) ^ /root/JavaX-Caches/tmp_964860284/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:52: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:55: error: class, interface, or enum expected for (; iIn < n; iIn++) ^ /root/JavaX-Caches/tmp_964860284/main.java:55: error: class, interface, or enum expected for (; iIn < n; iIn++) ^ /root/JavaX-Caches/tmp_964860284/main.java:58: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:62: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:66: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:71: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:75: error: class, interface, or enum expected for y to h: for x to w: { ^ /root/JavaX-Caches/tmp_964860284/main.java:77: error: class, interface, or enum expected if ((pixels[i/64] & (1L << (i & 63))) != 0) ^ /root/JavaX-Caches/tmp_964860284/main.java:79: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:81: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:85: error: class, interface, or enum expected for y to h: for x to w: { ^ /root/JavaX-Caches/tmp_964860284/main.java:87: error: class, interface, or enum expected if ((pixels[i/64] & (1L << (i & 63))) != 0) ^ /root/JavaX-Caches/tmp_964860284/main.java:89: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:91: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:93: error: class, interface, or enum expected public BufferedImage getBufferedImage() { ret toBW().getBufferedImage(); } ^ /root/JavaX-Caches/tmp_964860284/main.java:93: error: class, interface, or enum expected public BufferedImage getBufferedImage() { ret toBW().getBufferedImage(); } ^ /root/JavaX-Caches/tmp_964860284/main.java:96: error: class, interface, or enum expected public bool getPixel aka getBoolPixel(int x, int y) { ^ /root/JavaX-Caches/tmp_964860284/main.java:98: error: class, interface, or enum expected ret (pixels[i/64] & (1L << (i & 63))) != 0; ^ /root/JavaX-Caches/tmp_964860284/main.java:99: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:102: error: class, interface, or enum expected public bool getPixel aka getBoolPixel(int x, int y, bool defaultColor) { ^ /root/JavaX-Caches/tmp_964860284/main.java:104: error: class, interface, or enum expected ret getPixel(x, y); ^ /root/JavaX-Caches/tmp_964860284/main.java:105: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:107: error: class, interface, or enum expected public void setPixel(int x, int y, bool b) { ^ /root/JavaX-Caches/tmp_964860284/main.java:109: error: class, interface, or enum expected long val = pixels[i/64], shifted = 1L << (i & 63); ^ /root/JavaX-Caches/tmp_964860284/main.java:110: error: class, interface, or enum expected val = b ? val | shifted : val & ~shifted; ^ /root/JavaX-Caches/tmp_964860284/main.java:111: error: class, interface, or enum expected pixels[i/64] = val; ^ /root/JavaX-Caches/tmp_964860284/main.java:112: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:116: error: class, interface, or enum expected pixels[i/64] |= 1L << (i & 63); ^ /root/JavaX-Caches/tmp_964860284/main.java:117: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:119: error: class, interface, or enum expected public int getWidth() { ret w; } ^ /root/JavaX-Caches/tmp_964860284/main.java:119: error: class, interface, or enum expected public int getWidth() { ret w; } ^ /root/JavaX-Caches/tmp_964860284/main.java:120: error: class, interface, or enum expected public int getHeight() { ret h; } ^ /root/JavaX-Caches/tmp_964860284/main.java:120: error: class, interface, or enum expected public int getHeight() { ret h; } ^ /root/JavaX-Caches/tmp_964860284/main.java:124: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_964860284/main.java:130: error: class, interface, or enum expected if ((n & 63) != 0) ^ /root/JavaX-Caches/tmp_964860284/main.java:132: error: class, interface, or enum expected } ^ 65 errors