Wrote /root/JavaX-Caches/tmp_553049604/main.java - 809 bytes (written=809, should be 809) 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:/root/javafx/javafx.base.jar:/root/javafx/javafx.graphics.jar:/root/javafx/javafx.swing.jar -d /root/JavaX-Caches/tmp_217483102 /root/JavaX-Caches/tmp_553049604/main.java [Compilation Error]

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

main$JavaCompileException: ECJ returned errors. Annotation processing got disabled, since it requires a 1.6 compliant JVM ---------- 1. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 1) static int updateCanvas_retryInterval = 50;\r \r // if makeImg returns null, it is recalled after a delay\r static void updateCanvas(final Canvas canvas, fO makeImg) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, EnumHeader expected instead ---------- 2. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 5) awtIfNecessary { ^^^^^^^^^^^^^^ Syntax error on token "awtIfNecessary", { expected after this token ---------- 3. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 6) if (canvas.updating || canvas.getWidth() == 0) ret; ^^^ Syntax error, insert ":: IdentifierOrNew" to complete ReferenceExpression ---------- 4. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 6) if (canvas.updating || canvas.getWidth() == 0) ret; ^^^ Syntax error, insert "AssignmentOperator Expression" to complete Expression ---------- 5. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 14) awtLater(updateCanvas_retryInterval, r { ^ Syntax error, insert ")" to complete MethodInvocation ---------- 6. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 14) awtLater(updateCanvas_retryInterval, r { ^ Syntax error, insert ";" to complete Statement ---------- 7. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 17) }); ^ Syntax error on token ")", delete this token ---------- 8. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 18) } catch e { ^^^^^^^ Syntax error on tokens, Catches expected instead ---------- 9. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 23) } ^ Syntax error on token "}", ; expected after this token ---------- 10. ERROR in /root/JavaX-Caches/tmp_553049604/main.java (at line 27) } ^ Syntax error, insert "}" to complete EnumBody ---------- 10 problems (10 errors) Options file: /tmp/javax3560498429939061845