Wrote /root/JavaX-Caches/tmp_1546158303/main.java - 368 bytes (written=368, should be 368) 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_243185354 /root/JavaX-Caches/tmp_1546158303/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_1546158303/main.java (at line 1) static S readerToString(Reader r) ctex { ^ Syntax error on token "S", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 1) static S readerToString(Reader r) ctex { ^^^^^^ Syntax error on token "Reader", invalid ( ---------- 3. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 1) static S readerToString(Reader r) ctex {\r try { ^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 4. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 3) new StringBuilder buf;\r int n = 0; ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, ( expected instead ---------- 5. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 4) int n = 0;\r while (true) { ^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 6. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 5) while (true) { ^ Syntax error, insert ")" to complete Expression ---------- 7. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 5) while (true) { ^ Syntax error, insert "}" to complete MemberValueArrayInitializer ---------- 8. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 5) while (true) { ^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 9. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 5) while (true) { ^ Syntax error, insert "RestrictedIdentifierrecord Identifier" to complete RecordHeaderName ---------- 10. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 5) while (true) { ^ Syntax error, insert "RecordHeader" to complete RecordHeaderPart ---------- 11. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 5) while (true) {\r int ch = r.read();\r if (ch < 0)\r break;\r buf.append((char) ch);\r ++n;\r //if ((n % loadPage_verboseness) == 0) print(" " + n + " chars read");\r }\r ret buf.toString();\r } finally {\r r.close();\r } ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 12. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 7) if (ch < 0) ^^ Syntax error on token "if", { expected ---------- 13. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 7) if (ch < 0)\r break; ^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, ( expected instead ---------- 14. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 9) buf.append((char) ch); ^ Syntax error on token ";", invalid AssignmentOperator ---------- 15. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 10) ++n;\r //if ((n % loadPage_verboseness) == 0) print(" " + n + " chars read");\r }\r ret buf.toString(); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 16. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 13) ret buf.toString();\r } finally {\r r.close(); ^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 17. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 15) r.close(); ^ Syntax error, insert ")" to complete MethodInvocation ---------- 18. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 15) r.close(); ^ Syntax error, insert ")" to complete Expression ---------- 19. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 15) r.close(); ^ Syntax error, insert "AssignmentOperator Expression" to complete Assignment ---------- 20. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 15) r.close(); ^ Syntax error, insert ";" to complete BlockStatements ---------- 21. ERROR in /root/JavaX-Caches/tmp_1546158303/main.java (at line 16) } ^ Syntax error, insert "RecordBody" to complete CompilationUnit ---------- 21 problems (21 errors) Options file: /tmp/javax7544942856182974890