Wrote /root/JavaX-Caches/tmp_83116915/main.java - 1882 bytes (written=1882, should be 1882) javac=0, ecj=1, useJarBot=0 Checking ECJ at port 4898 at 127.0.0.1 /root/jdk-17/bin/javac -source 1.8 -target 1.8 -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_459113563 /root/JavaX-Caches/tmp_83116915/main.java 2>&1
[Compilation Error]

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

/root/JavaX-Caches/tmp_83116915/main.java:9: error: class, interface, or enum expected int w, h, w2, h2; ^ /root/JavaX-Caches/tmp_83116915/main.java:10: error: class, interface, or enum expected int[] finalPixels; ^ /root/JavaX-Caches/tmp_83116915/main.java:12: error: class, interface, or enum expected void scaleDown(BufferedImage img) { ^ /root/JavaX-Caches/tmp_83116915/main.java:15: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_83116915/main.java:19: error: class, interface, or enum expected int h = this.h = gp.h; ^ /root/JavaX-Caches/tmp_83116915/main.java:20: error: class, interface, or enum expected int w2 = this.w2 = w/scaleX, h2 = this.h2 = h/scaleY; ^ /root/JavaX-Caches/tmp_83116915/main.java:21: error: class, interface, or enum expected int stride = gp.scanlineStride; ^ /root/JavaX-Caches/tmp_83116915/main.java:22: error: class, interface, or enum expected int scaleArea = scaleX*scaleY; ^ /root/JavaX-Caches/tmp_83116915/main.java:24: error: class, interface, or enum expected int[] newPixels = finalPixels = new int[w2*h2]; ^ /root/JavaX-Caches/tmp_83116915/main.java:26: error: class, interface, or enum expected int iRow = gp.offset, iOut = 0; ^ /root/JavaX-Caches/tmp_83116915/main.java:27: error: class, interface, or enum expected int[] pixels = gp.data; ^ /root/JavaX-Caches/tmp_83116915/main.java:29: error: class, interface, or enum expected for y to h2: { ^ /root/JavaX-Caches/tmp_83116915/main.java:32: error: class, interface, or enum expected for x to w2: { ^ /root/JavaX-Caches/tmp_83116915/main.java:37: error: class, interface, or enum expected int iSub = iIn; ^ /root/JavaX-Caches/tmp_83116915/main.java:38: error: class, interface, or enum expected for subY to scaleY: { ^ /root/JavaX-Caches/tmp_83116915/main.java:41: error: class, interface, or enum expected r += (rgb >> 16) & 0xFF; ^ /root/JavaX-Caches/tmp_83116915/main.java:42: error: class, interface, or enum expected g += (rgb >> 8) & 0xFF; ^ /root/JavaX-Caches/tmp_83116915/main.java:43: error: class, interface, or enum expected b += rgb & 0xFF; ^ /root/JavaX-Caches/tmp_83116915/main.java:44: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_83116915/main.java:46: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_83116915/main.java:49: error: class, interface, or enum expected newPixels[iOut++] = rgbIntFullAlpha(r/scaleArea, g/scaleArea, b/scaleArea); ^ /root/JavaX-Caches/tmp_83116915/main.java:50: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_83116915/main.java:53: error: class, interface, or enum expected } // for y ^ /root/JavaX-Caches/tmp_83116915/main.java:58: error: class, interface, or enum expected ret get(); ^ /root/JavaX-Caches/tmp_83116915/main.java:59: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_83116915/main.java:63: error: class, interface, or enum expected } ^ /root/JavaX-Caches/tmp_83116915/main.java:67: error: class, interface, or enum expected } ^ 27 errors