Wrote /root/JavaX-Caches/tmp_1582286822/main.java - 207 bytes (written=207, should be 207) javac=0, ecj=1 Checking ECJ at port 4898 at 127.0.0.1 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_236182853 /root/JavaX-Caches/tmp_1582286822/main.java [Compilation Error]

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

main$JavaCompileException: ECJ returned errors. ---------- 1. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 1) static void waitUntilSysTimeOrFlag(long time, Flag flag) { ^^^^ Syntax error on token "void", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 1) static void waitUntilSysTimeOrFlag(long time, Flag flag) {\r if (flag == null) waitUntilSysTime(time); ^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, AnnotationName expected instead ---------- 3. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 2) if (flag == null) waitUntilSysTime(time); ^ Syntax error on token ")", @ expected after this token ---------- 4. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 2) if (flag == null) waitUntilSysTime(time); ^ Syntax error, insert "[ ]" to complete Dimension ---------- 5. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 2) if (flag == null) waitUntilSysTime(time); ^ Syntax error, insert ". class" to complete Expression ---------- 6. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 2) if (flag == null) waitUntilSysTime(time); ^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 7. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 2) if (flag == null) waitUntilSysTime(time); ^ Syntax error, insert "RestrictedIdentifierrecord Identifier" to complete RecordHeaderName ---------- 8. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 2) if (flag == null) waitUntilSysTime(time); ^ Syntax error, insert "RecordHeader" to complete RecordHeaderPart ---------- 9. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 3) else {\r long diff = time-sysNow();\r if (diff <= 0) ret;\r flag.waitUntilUp(diff);\r } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 10. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 4) long diff = time-sysNow(); ^ Syntax error on token ";", { expected after this token ---------- 11. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 5) if (diff <= 0) ret; ^ Syntax error on token ";", @ expected ---------- 12. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 6) flag.waitUntilUp(diff); ^^^^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 13. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 6) flag.waitUntilUp(diff); ^^^^ Syntax error, insert "[ ]" to complete Dimension ---------- 14. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 6) flag.waitUntilUp(diff); ^^^^ Syntax error, insert ". class" to complete Expression ---------- 15. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 6) flag.waitUntilUp(diff); ^^^^ Syntax error, insert "AssignmentOperator Expression" to complete Assignment ---------- 16. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 6) flag.waitUntilUp(diff); ^^^^ Syntax error, insert ";" to complete Statement ---------- 17. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 6) flag.waitUntilUp(diff); ^^^^ Syntax error, insert "else Statement" to complete BlockStatements ---------- 18. ERROR in /root/JavaX-Caches/tmp_1582286822/main.java (at line 7) } ^ Syntax error, insert "RecordBody" to complete CompilationUnit ---------- 18 problems (18 errors) Options file: /tmp/javax16606756972892915795