Wrote /root/JavaX-Caches/tmp_9044516/main.java - 1185 bytes (written=1185, should be 1185) 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_58535525 /root/JavaX-Caches/tmp_9044516/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_9044516/main.java (at line 1) static String unnull(String s) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 2. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 1) static String unnull(String s) { ^^^^^^ Syntax error on token "String", @ expected ---------- 3. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 1) static String unnull(String s) { ^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 4. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 2) return s == null ? "" : s;\r }\r \r static <A> Collection<A> unnull(Collection<A> l) {\r ret l == null ? emptyList() : l;\r }\r \r static <A> L<A> unnull(L<A> l) { ret l == null ? emptyList() : l; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 5. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 2) return s == null ? "" : s;\r }\r \r static <A> Collection<A> unnull(Collection<A> l) { ^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 6. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 5) static <A> Collection<A> unnull(Collection<A> l) {\r ret l == null ? emptyList() : l; ^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 7. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 6) ret l == null ? emptyList() : l;\r }\r \r static <A> L<A> unnull(L<A> l) { ret l == null ? emptyList() : l; } ^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 8. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 9) static <A> L<A> unnull(L<A> l) { ret l == null ? emptyList() : l; } ^^^^^^^ Syntax error on tokens, delete these tokens ---------- 9. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 10) static int[] unnull(int[] l) { ret l == null ? emptyIntArray() : l; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 10. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 10) static int[] unnull(int[] l) { ret l == null ? emptyIntArray() : l; } ^^^^^^ Syntax error on token "unnull", = expected after this token ---------- 11. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 10) static int[] unnull(int[] l) { ret l == null ? emptyIntArray() : l; } ^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 12. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 10) static int[] unnull(int[] l) { ret l == null ? emptyIntArray() : l; } ^ Syntax error on token "{", @ expected ---------- 13. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 11) static char[] unnull(char[] l) { ret l == null ? emptyCharArray() : l; } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 14. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 11) static char[] unnull(char[] l) { ret l == null ? emptyCharArray() : l; } ^^^^^^ Syntax error on token "unnull", = expected after this token ---------- 15. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 11) static char[] unnull(char[] l) { ret l == null ? emptyCharArray() : l; } ^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 16. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 11) static char[] unnull(char[] l) { ret l == null ? emptyCharArray() : l; } ^ Syntax error on token "{", @ expected ---------- 17. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 12) static double[] unnull(double[] l) { ret l == null ? emptyDoubleArray() : l; }\r \r static <A, B> Map<A, B> unnull(Map<A, B> l) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, ClassInstanceCreationExpressionName expected instead ---------- 18. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 12) static double[] unnull(double[] l) { ret l == null ? emptyDoubleArray() : l; } ^^^^^^ Syntax error on token "unnull", = expected after this token ---------- 19. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 12) static double[] unnull(double[] l) { ret l == null ? emptyDoubleArray() : l; } ^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 20. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 12) static double[] unnull(double[] l) { ret l == null ? emptyDoubleArray() : l; } ^ Syntax error on token "{", @ expected ---------- 21. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 14) static <A, B> Map<A, B> unnull(Map<A, B> l) { ^^^^^^ Syntax error on token "unnull", delete this token ---------- 22. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 15) ret l == null ? emptyMap() : l; ^^ Syntax error on token "==", = expected ---------- 23. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 16) } ^ Syntax error on token "}", delete this token ---------- 24. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 19) ret i == null ? emptyList() : i; ^^^ Syntax error on token "ret", return expected ---------- 25. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 23) ret a == null ? (A[]) emptyObjectArray() : a; ^^^ Syntax error on token "ret", return expected ---------- 26. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 27) ret b == null ? new BitSet() : b; ^^^ Syntax error on token "ret", return expected ---------- 27. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 30) ifclass Pt ^^ Syntax error, insert ";" to complete FieldDeclaration ---------- 28. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 32) ret p == null ? new Pt : p; ^^^ Syntax error on token "ret", return expected ---------- 29. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 32) ret p == null ? new Pt : p; ^^ Syntax error, insert "( )" to complete Expression ---------- 30. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 37) ifndef SymbolAsString ^^^^^^^^^^^^^^ Syntax error on token "SymbolAsString", ; expected ---------- 31. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 39) ret s == null ? emptySymbol() : s; ^^^ Syntax error on token "ret", return expected ---------- 32. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 44) ifclass Pair ^^^^ Syntax error on token "Pair", ; expected ---------- 33. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 46) ret p != null ? p : Pair(null, null); ^^^ Syntax error on token "ret", return expected ---------- 34. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 48) endif ^^^^^ Syntax error on token "endif", delete this token ---------- 35. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 50) static long unnull(Long l) { ret l == null ? 0L : l; } ^^^ Syntax error on token "ret", return expected ---------- 36. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 50) static long unnull(Long l) { ret l == null ? 0L : l; } ^ Syntax error, insert "}" to complete ClassBody ---------- 37. ERROR in /root/JavaX-Caches/tmp_9044516/main.java (at line 50) static long unnull(Long l) { ret l == null ? 0L : l; } ^ Syntax error, insert ";" to complete BlockStatementopt ---------- 37 problems (37 errors) Options file: /tmp/javax5925289618887579388