Wrote /root/JavaX-Caches/tmp_2052158476/main.java - 675 bytes (written=675, should be 675) 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_1857923282 /root/JavaX-Caches/tmp_2052158476/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_2052158476/main.java (at line 1) static <A, B extends A> void addAll(Collection<A> c, Iterable<B> b) { ^^^^^^ Syntax error, insert "interface Identifier" to complete InterfaceHeaderName ---------- 2. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 1) static <A, B extends A> void addAll(Collection<A> c, Iterable<B> b) { ^ Syntax error on token ">", { expected after this token ---------- 3. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 6) ret c != null && b != null && c.addAll(b); ^^^ Syntax error on token "ret", return expected ---------- 4. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 10) ret c != null && b != null && c.addAll(Arrays.asList(b)); ^^^ Syntax error on token "ret", return expected ---------- 5. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 13) ifclass Collector ^^^^^^^^^ Syntax error, insert ";" to complete FieldDeclaration ---------- 6. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 17) endif ^^^^^ Syntax error, insert "Identifier (" to complete MethodHeaderName ---------- 7. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 17) endif ^^^^^ Syntax error, insert ")" to complete MethodDeclaration ---------- 8. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 17) endif ^^^^^ Syntax error, insert ";" to complete MethodDeclaration ---------- 9. ERROR in /root/JavaX-Caches/tmp_2052158476/main.java (at line 22) } ^ Syntax error, insert "}" to complete InterfaceBody ---------- 9 problems (9 errors) Options file: /tmp/javax4738620653599233757