Wrote /root/JavaX-Caches/tmp_269748834/main.java - 6445 bytes (written=6445, should be 6445)
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_1642291719 /root/JavaX-Caches/tmp_269748834/main.java 2>&1
[Compilation Error]Compiler errors. Medium transpile. Show Java sources. Show snippet. Edit.
/root/JavaX-Caches/tmp_269748834/main.java:21: error: class, interface, or enum expected
sclass PixelUtils {
^
/root/JavaX-Caches/tmp_269748834/main.java:22: error: class, interface, or enum expected
public final static int REPLACE = 0;
^
/root/JavaX-Caches/tmp_269748834/main.java:23: error: class, interface, or enum expected
public final static int NORMAL = 1;
^
/root/JavaX-Caches/tmp_269748834/main.java:24: error: class, interface, or enum expected
public final static int MIN = 2;
^
/root/JavaX-Caches/tmp_269748834/main.java:25: error: class, interface, or enum expected
public final static int MAX = 3;
^
/root/JavaX-Caches/tmp_269748834/main.java:26: error: class, interface, or enum expected
public final static int ADD = 4;
^
/root/JavaX-Caches/tmp_269748834/main.java:27: error: class, interface, or enum expected
public final static int SUBTRACT = 5;
^
/root/JavaX-Caches/tmp_269748834/main.java:28: error: class, interface, or enum expected
public final static int DIFFERENCE = 6;
^
/root/JavaX-Caches/tmp_269748834/main.java:29: error: class, interface, or enum expected
public final static int MULTIPLY = 7;
^
/root/JavaX-Caches/tmp_269748834/main.java:30: error: class, interface, or enum expected
public final static int HUE = 8;
^
/root/JavaX-Caches/tmp_269748834/main.java:31: error: class, interface, or enum expected
public final static int SATURATION = 9;
^
/root/JavaX-Caches/tmp_269748834/main.java:32: error: class, interface, or enum expected
public final static int VALUE = 10;
^
/root/JavaX-Caches/tmp_269748834/main.java:33: error: class, interface, or enum expected
public final static int COLOR = 11;
^
/root/JavaX-Caches/tmp_269748834/main.java:34: error: class, interface, or enum expected
public final static int SCREEN = 12;
^
/root/JavaX-Caches/tmp_269748834/main.java:35: error: class, interface, or enum expected
public final static int AVERAGE = 13;
^
/root/JavaX-Caches/tmp_269748834/main.java:36: error: class, interface, or enum expected
public final static int OVERLAY = 14;
^
/root/JavaX-Caches/tmp_269748834/main.java:37: error: class, interface, or enum expected
public final static int CLEAR = 15;
^
/root/JavaX-Caches/tmp_269748834/main.java:38: error: class, interface, or enum expected
public final static int EXCHANGE = 16;
^
/root/JavaX-Caches/tmp_269748834/main.java:39: error: class, interface, or enum expected
public final static int DISSOLVE = 17;
^
/root/JavaX-Caches/tmp_269748834/main.java:40: error: class, interface, or enum expected
public final static int DST_IN = 18;
^
/root/JavaX-Caches/tmp_269748834/main.java:41: error: class, interface, or enum expected
public final static int ALPHA = 19;
^
/root/JavaX-Caches/tmp_269748834/main.java:42: error: class, interface, or enum expected
public final static int ALPHA_TO_GRAY = 20;
^
/root/JavaX-Caches/tmp_269748834/main.java:44: error: class, interface, or enum expected
private static Random randomGenerator = new Random();
^
/root/JavaX-Caches/tmp_269748834/main.java:49: error: class, interface, or enum expected
static int _clamp(int c) {
^
/root/JavaX-Caches/tmp_269748834/main.java:52: error: class, interface, or enum expected
if (c > 255)
^
/root/JavaX-Caches/tmp_269748834/main.java:54: error: class, interface, or enum expected
return c;
^
/root/JavaX-Caches/tmp_269748834/main.java:55: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_269748834/main.java:57: error: class, interface, or enum expected
public static int interpolate(int v1, int v2, float f) {
^
/root/JavaX-Caches/tmp_269748834/main.java:59: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_269748834/main.java:61: error: class, interface, or enum expected
public static int brightness(int rgb) {
^
/root/JavaX-Caches/tmp_269748834/main.java:63: error: class, interface, or enum expected
int g = (rgb >> 8) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:64: error: class, interface, or enum expected
int b = rgb & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:65: error: class, interface, or enum expected
return (r+g+b)/3;
^
/root/JavaX-Caches/tmp_269748834/main.java:66: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_269748834/main.java:68: error: class, interface, or enum expected
public static boolean nearColors(int rgb1, int rgb2, int tolerance) {
^
/root/JavaX-Caches/tmp_269748834/main.java:70: error: class, interface, or enum expected
int g1 = (rgb1 >> 8) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:71: error: class, interface, or enum expected
int b1 = rgb1 & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:72: error: class, interface, or enum expected
int r2 = (rgb2 >> 16) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:73: error: class, interface, or enum expected
int g2 = (rgb2 >> 8) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:74: error: class, interface, or enum expected
int b2 = rgb2 & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:75: error: class, interface, or enum expected
return Math.abs(r1-r2) <= tolerance && Math.abs(g1-g2) <= tolerance && Math.abs(b1-b2) <= tolerance;
^
/root/JavaX-Caches/tmp_269748834/main.java:76: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_269748834/main.java:78: error: class, interface, or enum expected
private final static float hsb1[] = new float[3];//FIXME-not thread safe
^
/root/JavaX-Caches/tmp_269748834/main.java:79: error: class, interface, or enum expected
private final static float hsb2[] = new float[3];//FIXME-not thread safe
^
/root/JavaX-Caches/tmp_269748834/main.java:82: error: class, interface, or enum expected
public static int combinePixels(int rgb1, int rgb2, int op) {
^
/root/JavaX-Caches/tmp_269748834/main.java:84: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_269748834/main.java:86: error: class, interface, or enum expected
public static int combinePixels(int rgb1, int rgb2, int op, int extraAlpha, int channelMask) {
^
/root/JavaX-Caches/tmp_269748834/main.java:88: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_269748834/main.java:90: error: class, interface, or enum expected
public static int combinePixels(int rgb1, int rgb2, int op, int extraAlpha) {
^
/root/JavaX-Caches/tmp_269748834/main.java:93: error: class, interface, or enum expected
int a1 = (rgb1 >> 24) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:94: error: class, interface, or enum expected
int r1 = (rgb1 >> 16) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:95: error: class, interface, or enum expected
int g1 = (rgb1 >> 8) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:96: error: class, interface, or enum expected
int b1 = rgb1 & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:97: error: class, interface, or enum expected
int a2 = (rgb2 >> 24) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:98: error: class, interface, or enum expected
int r2 = (rgb2 >> 16) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:99: error: class, interface, or enum expected
int g2 = (rgb2 >> 8) & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:100: error: class, interface, or enum expected
int b2 = rgb2 & 0xff;
^
/root/JavaX-Caches/tmp_269748834/main.java:102: error: class, interface, or enum expected
switch (op) {
^
/root/JavaX-Caches/tmp_269748834/main.java:105: error: class, interface, or enum expected
case MIN:
^
/root/JavaX-Caches/tmp_269748834/main.java:107: error: class, interface, or enum expected
g1 = Math.min(g1, g2);
^
/root/JavaX-Caches/tmp_269748834/main.java:108: error: class, interface, or enum expected
b1 = Math.min(b1, b2);
^
/root/JavaX-Caches/tmp_269748834/main.java:109: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:110: error: class, interface, or enum expected
case MAX:
^
/root/JavaX-Caches/tmp_269748834/main.java:112: error: class, interface, or enum expected
g1 = Math.max(g1, g2);
^
/root/JavaX-Caches/tmp_269748834/main.java:113: error: class, interface, or enum expected
b1 = Math.max(b1, b2);
^
/root/JavaX-Caches/tmp_269748834/main.java:114: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:115: error: class, interface, or enum expected
case ADD:
^
/root/JavaX-Caches/tmp_269748834/main.java:117: error: class, interface, or enum expected
g1 = _clamp(g1+g2);
^
/root/JavaX-Caches/tmp_269748834/main.java:118: error: class, interface, or enum expected
b1 = _clamp(b1+b2);
^
/root/JavaX-Caches/tmp_269748834/main.java:119: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:120: error: class, interface, or enum expected
case SUBTRACT:
^
/root/JavaX-Caches/tmp_269748834/main.java:122: error: class, interface, or enum expected
g1 = _clamp(g2-g1);
^
/root/JavaX-Caches/tmp_269748834/main.java:123: error: class, interface, or enum expected
b1 = _clamp(b2-b1);
^
/root/JavaX-Caches/tmp_269748834/main.java:124: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:125: error: class, interface, or enum expected
case DIFFERENCE:
^
/root/JavaX-Caches/tmp_269748834/main.java:127: error: class, interface, or enum expected
g1 = _clamp(Math.abs(g1-g2));
^
/root/JavaX-Caches/tmp_269748834/main.java:128: error: class, interface, or enum expected
b1 = _clamp(Math.abs(b1-b2));
^
/root/JavaX-Caches/tmp_269748834/main.java:129: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:130: error: class, interface, or enum expected
case MULTIPLY:
^
/root/JavaX-Caches/tmp_269748834/main.java:132: error: class, interface, or enum expected
g1 = _clamp(g1*g2/255);
^
/root/JavaX-Caches/tmp_269748834/main.java:133: error: class, interface, or enum expected
b1 = _clamp(b1*b2/255);
^
/root/JavaX-Caches/tmp_269748834/main.java:134: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:135: error: class, interface, or enum expected
case DISSOLVE:
^
/root/JavaX-Caches/tmp_269748834/main.java:138: error: class, interface, or enum expected
g1 = g2;
^
/root/JavaX-Caches/tmp_269748834/main.java:139: error: class, interface, or enum expected
b1 = b2;
^
/root/JavaX-Caches/tmp_269748834/main.java:140: error: class, interface, or enum expected
}
^
/root/JavaX-Caches/tmp_269748834/main.java:142: error: class, interface, or enum expected
case AVERAGE:
^
/root/JavaX-Caches/tmp_269748834/main.java:144: error: class, interface, or enum expected
g1 = (g1+g2)/2;
^
/root/JavaX-Caches/tmp_269748834/main.java:145: error: class, interface, or enum expected
b1 = (b1+b2)/2;
^
/root/JavaX-Caches/tmp_269748834/main.java:146: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:147: error: class, interface, or enum expected
case HUE:
^
/root/JavaX-Caches/tmp_269748834/main.java:152: error: class, interface, or enum expected
Color.RGBtoHSB(r2, g2, b2, hsb2);
^
/root/JavaX-Caches/tmp_269748834/main.java:153: error: class, interface, or enum expected
switch (op) {
^
/root/JavaX-Caches/tmp_269748834/main.java:156: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:157: error: class, interface, or enum expected
case SATURATION:
^
/root/JavaX-Caches/tmp_269748834/main.java:159: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:160: error: class, interface, or enum expected
case VALUE:
^
/root/JavaX-Caches/tmp_269748834/main.java:162: error: class, interface, or enum expected
break;
^
/root/JavaX-Caches/tmp_269748834/main.java:163: error: class, interface, or enum expected
case COLOR:
^
/root/JavaX-Caches/tmp_269748834/main.java:165: error: class, interface, or enum expected
hsb2[1] = hsb1[1];
^
100 errors
only showing the first 100 errors, of 140 total; use -Xmaxerrs if you would like to see more