Wrote /root/JavaX-Caches/tmp_301330370/main.java - 242 bytes (written=242, should be 242) 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_2007729543 /root/JavaX-Caches/tmp_301330370/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_301330370/main.java (at line 1) static O[] concatArrays(O[]... arrays) { ^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, AnnotationName expected instead ---------- 2. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 1) static O[] concatArrays(O[]... arrays) { ^^^ Syntax error on token "...", :: expected ---------- 3. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 1) static O[] concatArrays(O[]... arrays) { ^ Syntax error, insert "RestrictedIdentifierrecord Identifier" to complete RecordHeaderName ---------- 4. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 1) static O[] concatArrays(O[]... arrays) { ^ Syntax error, insert "RecordHeader" to complete RecordHeaderPart ---------- 5. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 1) static O[] concatArrays(O[]... arrays) {\r int l = 0;\r for (O[] a : arrays) l += l(a);\r O[] x = new O[l];\r int i = 0;\r for (O[] a : arrays) if (a != null) {\r System.arraycopy(a, 0, x, i, l(a));\r i += l(a);\r }\r ret x; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 6. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 2) int l = 0;\r for (O[] a : arrays) l += l(a);\r O[] x = new O[l]; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 7. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 3) for (O[] a : arrays) l += l(a); ^^^ Syntax error on token "for", Identifier expected ---------- 8. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 3) for (O[] a : arrays) l += l(a); ^^^^^^^^^^^^^^^^ Syntax error on tokens, AnnotationName expected instead ---------- 9. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 3) for (O[] a : arrays) l += l(a); ^ Syntax error on token ";", @ expected ---------- 10. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 5) int i = 0; ^ Syntax error on token ";", { expected after this token ---------- 11. ERROR in /root/JavaX-Caches/tmp_301330370/main.java (at line 10) ret x; ^ Syntax error, insert "RecordBody" to complete CompilationUnit ---------- 11 problems (11 errors) Options file: /tmp/javax11474131094153726116