Wrote /tmp/tmp_939973736/main.java - 871 bytes (written=871, should be 871) 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_1398824857 /tmp/tmp_939973736/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_939973736/main.java (at line 3) static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius) { ^^^^^^^^^^^^^ Syntax error on token "BufferedImage", @ expected ---------- 2. ERROR in /tmp/tmp_939973736/main.java (at line 3) static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius) { ^^^^^^^^^^^^^ Syntax error on token "BufferedImage", ( expected after this token ---------- 3. ERROR in /tmp/tmp_939973736/main.java (at line 3) static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius) { ^^^ Syntax error on token "int", delete this token ---------- 4. ERROR in /tmp/tmp_939973736/main.java (at line 3) static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius) { ^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 5. ERROR in /tmp/tmp_939973736/main.java (at line 3) static BufferedImage makeRoundedCorner(BufferedImage image, int cornerRadius) { ^ Syntax error, insert "interface Identifier" to complete InterfaceHeader ---------- 6. ERROR in /tmp/tmp_939973736/main.java (at line 11) g2.setComposite(AlphaComposite.Src); ^ Syntax error on token ".", @ expected after this token ---------- 7. ERROR in /tmp/tmp_939973736/main.java (at line 11) g2.setComposite(AlphaComposite.Src); ^ Syntax error on token ";", @ expected ---------- 8. ERROR in /tmp/tmp_939973736/main.java (at line 12) g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); ^ Syntax error on token ",", . expected ---------- 9. ERROR in /tmp/tmp_939973736/main.java (at line 12) g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); ^ Syntax error on token ";", @ expected ---------- 10. ERROR in /tmp/tmp_939973736/main.java (at line 13) g2.setColor(Color.WHITE); ^ Syntax error on token ";", @ expected ---------- 11. ERROR in /tmp/tmp_939973736/main.java (at line 14) g2.fill(new RoundRectangle2D.Float(0, 0, w, h, cornerRadius, cornerRadius)); ^ Syntax error on token ";", @ expected ---------- 12. ERROR in /tmp/tmp_939973736/main.java (at line 18) g2.setComposite(AlphaComposite.SrcAtop); ^ Syntax error on token ";", @ expected ---------- 13. ERROR in /tmp/tmp_939973736/main.java (at line 19) g2.drawImage(image, 0, 0, null); ^ Syntax error on token ",", ( expected ---------- 14. ERROR in /tmp/tmp_939973736/main.java (at line 19) g2.drawImage(image, 0, 0, null); ^ Syntax error on token ";", ? expected ---------- 15. ERROR in /tmp/tmp_939973736/main.java (at line 20) g2.dispose(); ^ Syntax error, insert ": Expression" to complete Expression ---------- 16. ERROR in /tmp/tmp_939973736/main.java (at line 20) g2.dispose(); ^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 17. ERROR in /tmp/tmp_939973736/main.java (at line 20) g2.dispose(); ^ Syntax error, insert "SimpleName" to complete QualifiedName ---------- 18. ERROR in /tmp/tmp_939973736/main.java (at line 20) g2.dispose(); ^ Syntax error, insert "Identifier (" to complete MethodHeaderName ---------- 19. ERROR in /tmp/tmp_939973736/main.java (at line 20) g2.dispose(); ^ Syntax error, insert ")" to complete MethodDeclaration ---------- 19 problems (19 errors) Options file: /tmp/javax5243008173774225447