Wrote /root/JavaX-Caches/tmp_1438319375/main.java - 284 bytes (written=284, should be 284) 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_1588261590 /root/JavaX-Caches/tmp_1438319375/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_1438319375/main.java (at line 1) static <A> L<A> takeLast(L<A> l, int n) { ^^^^^^ Syntax error, insert "interface Identifier" to complete InterfaceHeaderName ---------- 2. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 1) static <A> L<A> takeLast(L<A> l, int n) { ^ Syntax error on token ">", { expected after this token ---------- 3. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 6) ret takeLast(l, n); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 4. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 6) ret takeLast(l, n); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 5. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 10) ret substring(s, l(s)-n); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 6. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 10) ret substring(s, l(s)-n); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 7. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 14) ret substring(s, l(s)-n); ^^^ Syntax error, insert "VariableDeclarators" to complete LocalVariableDeclaration ---------- 8. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 14) ret substring(s, l(s)-n); ^^^ Syntax error, insert ";" to complete BlockStatements ---------- 9. ERROR in /root/JavaX-Caches/tmp_1438319375/main.java (at line 15) } ^ Syntax error, insert "}" to complete InterfaceBody ---------- 9 problems (9 errors) Options file: /tmp/javax1980965020226994191