Wrote /tmp/tmp_175886384/main.java - 195 bytes (written=195, should be 195) ecj -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 -d /tmp/tmp_1044448917 /tmp/tmp_175886384/main.java [Compilation Error]

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

java.lang.RuntimeException: Java compiler returned errors. ---------- 1. ERROR in /tmp/tmp_175886384/main.java (at line 2) static BufferedImage drawImageOnImage(BufferedImage img, BufferedImage canvas, int x, int y) { ^^^^^^^^^^^^^ Syntax error on token "BufferedImage", @ expected ---------- 2. ERROR in /tmp/tmp_175886384/main.java (at line 2) static BufferedImage drawImageOnImage(BufferedImage img, BufferedImage canvas, int x, int y) { ^^^^^^^^^^^^^ Syntax error on token "BufferedImage", = expected after this token ---------- 3. ERROR in /tmp/tmp_175886384/main.java (at line 2) static BufferedImage drawImageOnImage(BufferedImage img, BufferedImage canvas, int x, int y) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 4. ERROR in /tmp/tmp_175886384/main.java (at line 2) static BufferedImage drawImageOnImage(BufferedImage img, BufferedImage canvas, int x, int y) { ^^^^^^^^^^^^^ Syntax error on token "BufferedImage", = expected after this token ---------- 5. ERROR in /tmp/tmp_175886384/main.java (at line 3) createGraphics(canvas).drawImage(img, x, y, null); ^^^^ Syntax error, insert ")" to complete MethodInvocation ---------- 6. ERROR in /tmp/tmp_175886384/main.java (at line 3) createGraphics(canvas).drawImage(img, x, y, null); ^^^^ Syntax error, insert "}" to complete MemberValueArrayInitializer ---------- 7. ERROR in /tmp/tmp_175886384/main.java (at line 3) createGraphics(canvas).drawImage(img, x, y, null); ^^^^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 8. ERROR in /tmp/tmp_175886384/main.java (at line 3) createGraphics(canvas).drawImage(img, x, y, null); ^^^^ Syntax error, insert "enum Identifier" to complete EnumHeaderName ---------- 9. ERROR in /tmp/tmp_175886384/main.java (at line 3) createGraphics(canvas).drawImage(img, x, y, null); ^^^^ Syntax error, insert "EnumBody" to complete CompilationUnit ---------- 9 problems (9 errors) Options file: /tmp/javax4003078188916360229