Wrote /root/JavaX-Caches/tmp_1900515660/main.java - 468 bytes (written=468, should be 468) 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_448150659 /root/JavaX-Caches/tmp_1900515660/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_1900515660/main.java (at line 1) sS renderHowLongAgo(long timestamp) { ^^ Syntax error on token "sS", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 1) sS renderHowLongAgo(long timestamp) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 3. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 1) sS renderHowLongAgo(long timestamp) { ^^^^ Syntax error on token "long", delete this token ---------- 4. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 2) if (timestamp == 0) ret "never";\r int seconds = howManySecondsAgo(timestamp); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 5. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 2) if (timestamp == 0) ret "never"; ^^^ Syntax error on token "ret", return expected ---------- 6. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 3) int seconds = howManySecondsAgo(timestamp); ^^^ Syntax error on token "int", else expected ---------- 7. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 4) if (seconds <= 0) ret "just now";\r if (seconds < 60) ret n2(seconds, "second") + " ago";\r int minutes = iround(seconds/60.0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 8. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 4) if (seconds <= 0) ret "just now"; ^^^ Syntax error on token "ret", return expected ---------- 9. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 4) if (seconds <= 0) ret "just now"; ^ Syntax error on token ";", else expected after this token ---------- 10. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 5) if (seconds < 60) ret n2(seconds, "second") + " ago"; ^^^ Syntax error on token "ret", return expected ---------- 11. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 6) int minutes = iround(seconds/60.0); ^^^ Syntax error on token "int", else expected ---------- 12. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 7) if (minutes < 60) ret n2(minutes, "minute") + " ago";\r int hours = iround(minutes/60.0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 13. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 7) if (minutes < 60) ret n2(minutes, "minute") + " ago"; ^^^ Syntax error on token "ret", return expected ---------- 14. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 8) int hours = iround(minutes/60.0); ^^^ Syntax error on token "int", else expected ---------- 15. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 9) if (hours < 24) ret n2(hours, "hour") + " ago";\r int days = iround(hours/24.0); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 16. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 9) if (hours < 24) ret n2(hours, "hour") + " ago"; ^^^ Syntax error on token "ret", return expected ---------- 17. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 10) int days = iround(hours/24.0); ^^^ Syntax error on token "int", else expected ---------- 18. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 11) ret n2(days, "day") + " ago"; ^^^ Syntax error on token "ret", return expected ---------- 19. ERROR in /root/JavaX-Caches/tmp_1900515660/main.java (at line 12) } ^ Syntax error on token "}", delete this token ---------- 19 problems (19 errors) Options file: /tmp/javax2771220148493493514