Wrote /root/JavaX-Caches/tmp_1757449939/main.java - 244 bytes (written=244, should be 244) 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_1799601548 /root/JavaX-Caches/tmp_1757449939/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_1757449939/main.java (at line 3) static int localHours(long time) { ^^^ Syntax error on token "int", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 3) static int localHours(long time) { ^^^^ Syntax error on token "long", delete this token ---------- 3. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 3) static int localHours(long time) { ^ Syntax error on token ")", -> expected ---------- 4. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 6) ret parseInt(sdf.format(time)); ^^^ Syntax error on token "ret", { expected ---------- 5. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 9) static int localHours() { ^^^^^^^^^^ Syntax error on token "localHours", AnnotationName expected after this token ---------- 6. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 9) static int localHours() { ^ Syntax error, insert "[ ]" to complete Dimension ---------- 7. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 9) static int localHours() { ^ Syntax error, insert ";" to complete LocalVariableDeclarationStatement ---------- 8. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 10) ret localHours(now()); ^^^ Syntax error on token "ret", return expected ---------- 9. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 11) } ^ Syntax error, insert "}" to complete Block ---------- 10. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 11) } ^ Syntax error, insert ")" to complete Modifier ---------- 11. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 11) } ^ Syntax error, insert "enum Identifier" to complete EnumHeader ---------- 12. ERROR in /root/JavaX-Caches/tmp_1757449939/main.java (at line 11) } ^ Syntax error, insert "EnumBody" to complete EnumDeclaration ---------- 12 problems (12 errors) Options file: /tmp/javax13196030364070509555