Wrote /root/JavaX-Caches/tmp_52141283/main.java - 615 bytes (written=615, should be 615) 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_1187174423 /root/JavaX-Caches/tmp_52141283/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_52141283/main.java (at line 1) static L<S> mapToLines(Map map) { ^^^^^^ Syntax error on token "static", interface expected after this token ---------- 2. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 1) static L<S> mapToLines(Map map) { ^ Syntax error on token ">", { expected after this token ---------- 3. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 2) new L<S> l; ^^^^^^^^ Syntax error on tokens, ReferenceType expected instead ---------- 4. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 9) ret lines(map(map, f)); ^^^ Syntax error on token "ret", return expected ---------- 5. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 12) sS mapLike mapToLines(O f, Map map) { ^^^^^^^ Syntax error, insert ";" to complete FieldDeclaration ---------- 6. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 13) ret lines(map(map, f)); ^^^ Syntax error on token "ret", return expected ---------- 7. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 16) sS mapLike mapToLines(O f, Iterable l) { ^^^^^^^ Syntax error, insert ";" to complete FieldDeclaration ---------- 8. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 17) ret lines(map(f, l)); ^^^ Syntax error on token "ret", return expected ---------- 9. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 21) ret mapToLines((O) f, l); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 10. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 21) ret mapToLines((O) f, l); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 11. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 25) ret mapToLines((O) f, l); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 12. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 25) ret mapToLines((O) f, l); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 13. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 29) ret lines(map(map, f)); ^^^ Syntax error on token "ret", return expected ---------- 14. ERROR in /root/JavaX-Caches/tmp_52141283/main.java (at line 30) } ^ Syntax error, insert "}" to complete InterfaceBody ---------- 14 problems (14 errors) Options file: /tmp/javax4809151850649566937