Wrote /root/JavaX-Caches/tmp_1089442926/main.java - 3191 bytes (written=3191, should be 3191)
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_328123348 /root/JavaX-Caches/tmp_1089442926/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_1089442926/main.java:1: error: class, interface, or enum expected
persistable sclass Image2B is IBinaryImage {
^
/root/JavaX-Caches/tmp_1089442926/main.java:3: error: class, interface, or enum expected
byte[] pixels;
^
/root/JavaX-Caches/tmp_1089442926/main.java:5: error: class, interface, or enum expected
*(int *w, int *h, byte[] *pixels) { cleanPixelArray(); }
^
/root/JavaX-Caches/tmp_1089442926/main.java:5: error: class, interface, or enum expected
*(int *w, int *h, byte[] *pixels) { cleanPixelArray(); }
^
/root/JavaX-Caches/tmp_1089442926/main.java:9: error: class, interface, or enum expected
h = img.getHeight();
^
/root/JavaX-Caches/tmp_1089442926/main.java:10: error: class, interface, or enum expected
pixels = cloneByteArray(img.pixels);
^
/root/JavaX-Caches/tmp_1089442926/main.java:11: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:15: error: class, interface, or enum expected
h = img.getHeight();
^
/root/JavaX-Caches/tmp_1089442926/main.java:16: error: class, interface, or enum expected
pixels = new byte[(w*h+7)/8];
^
/root/JavaX-Caches/tmp_1089442926/main.java:17: error: class, interface, or enum expected
for y to h: for x to w:
^
/root/JavaX-Caches/tmp_1089442926/main.java:20: error: class, interface, or enum expected
pixels[i/8] |= 1 << (i & 7);
^
/root/JavaX-Caches/tmp_1089442926/main.java:21: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:26: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:30: error: class, interface, or enum expected
w = img.w(); h = img.h();
^
/root/JavaX-Caches/tmp_1089442926/main.java:31: error: class, interface, or enum expected
int n = w*h;
^
/root/JavaX-Caches/tmp_1089442926/main.java:32: error: class, interface, or enum expected
int nOut = (n+7)/8;
^
/root/JavaX-Caches/tmp_1089442926/main.java:33: error: class, interface, or enum expected
byte[] pixels = this.pixels = new byte[nOut];
^
/root/JavaX-Caches/tmp_1089442926/main.java:34: error: class, interface, or enum expected
byte[] bwPixels = img.pixels;
^
/root/JavaX-Caches/tmp_1089442926/main.java:35: error: class, interface, or enum expected
int iIn = 0;
^
/root/JavaX-Caches/tmp_1089442926/main.java:38: error: class, interface, or enum expected
for (int iOut = 0; iOut < nOut-1; iOut++) {
^
/root/JavaX-Caches/tmp_1089442926/main.java:38: error: class, interface, or enum expected
for (int iOut = 0; iOut < nOut-1; iOut++) {
^
/root/JavaX-Caches/tmp_1089442926/main.java:38: error: class, interface, or enum expected
for (int iOut = 0; iOut < nOut-1; iOut++) {
^
/root/JavaX-Caches/tmp_1089442926/main.java:40: error: class, interface, or enum expected
for bit to 8: {
^
/root/JavaX-Caches/tmp_1089442926/main.java:42: error: class, interface, or enum expected
if (ubyteToInt(bwPixels[iIn++]) >= threshold)
^
/root/JavaX-Caches/tmp_1089442926/main.java:44: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:46: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:49: error: class, interface, or enum expected
for (; iIn < n; iIn++)
^
/root/JavaX-Caches/tmp_1089442926/main.java:49: error: class, interface, or enum expected
for (; iIn < n; iIn++)
^
/root/JavaX-Caches/tmp_1089442926/main.java:52: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:56: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:60: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:65: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:69: error: class, interface, or enum expected
for y to h: for x to w: {
^
/root/JavaX-Caches/tmp_1089442926/main.java:71: error: class, interface, or enum expected
if ((pixels[i/8] & (1 << (i & 7))) != 0)
^
/root/JavaX-Caches/tmp_1089442926/main.java:73: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:75: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:79: error: class, interface, or enum expected
for y to h: for x to w: {
^
/root/JavaX-Caches/tmp_1089442926/main.java:81: error: class, interface, or enum expected
if ((pixels[i/8] & (1 << (i & 7))) != 0)
^
/root/JavaX-Caches/tmp_1089442926/main.java:83: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:85: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:87: error: class, interface, or enum expected
public BufferedImage getBufferedImage() { ret toBW().getBufferedImage(); }
^
/root/JavaX-Caches/tmp_1089442926/main.java:87: error: class, interface, or enum expected
public BufferedImage getBufferedImage() { ret toBW().getBufferedImage(); }
^
/root/JavaX-Caches/tmp_1089442926/main.java:90: error: class, interface, or enum expected
public bool getPixel aka getBoolPixel(int x, int y) {
^
/root/JavaX-Caches/tmp_1089442926/main.java:92: error: class, interface, or enum expected
ret (pixels[i/8] & (1 << (i & 7))) != 0;
^
/root/JavaX-Caches/tmp_1089442926/main.java:93: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:96: error: class, interface, or enum expected
public bool getPixel aka getBoolPixel(int x, int y, bool defaultColor) {
^
/root/JavaX-Caches/tmp_1089442926/main.java:98: error: class, interface, or enum expected
ret getPixel(x, y);
^
/root/JavaX-Caches/tmp_1089442926/main.java:99: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:101: error: class, interface, or enum expected
public void setPixel(int x, int y, bool b) {
^
/root/JavaX-Caches/tmp_1089442926/main.java:103: error: class, interface, or enum expected
byte val = pixels[i/8], shifted = (byte) (1 << (i & 7));
^
/root/JavaX-Caches/tmp_1089442926/main.java:104: error: class, interface, or enum expected
val = (byte) (b ? val | shifted : val & ~shifted);
^
/root/JavaX-Caches/tmp_1089442926/main.java:105: error: class, interface, or enum expected
pixels[i/8] = val;
^
/root/JavaX-Caches/tmp_1089442926/main.java:106: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:110: error: class, interface, or enum expected
pixels[i/8] |= 1 << (i & 7);
^
/root/JavaX-Caches/tmp_1089442926/main.java:111: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:113: error: class, interface, or enum expected
public int getWidth() { ret w; }
^
/root/JavaX-Caches/tmp_1089442926/main.java:113: error: class, interface, or enum expected
public int getWidth() { ret w; }
^
/root/JavaX-Caches/tmp_1089442926/main.java:114: error: class, interface, or enum expected
public int getHeight() { ret h; }
^
/root/JavaX-Caches/tmp_1089442926/main.java:114: error: class, interface, or enum expected
public int getHeight() { ret h; }
^
/root/JavaX-Caches/tmp_1089442926/main.java:118: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:124: error: class, interface, or enum expected
if ((n & 7) != 0)
^
/root/JavaX-Caches/tmp_1089442926/main.java:126: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_1089442926/main.java:128: error: class, interface, or enum expected
public double averageBrightness() {
^
/root/JavaX-Caches/tmp_1089442926/main.java:130: error: class, interface, or enum expected
}
^
64 errors