Wrote /root/JavaX-Caches/tmp_383572145/main.java - 511 bytes (written=511, should be 511) 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_86484295 /root/JavaX-Caches/tmp_383572145/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_383572145/main.java (at line 1) static S loadPageWithUserAgentAndTimeout(S url, S userAgent, int timeout) ctex { ^ Syntax error on token "S", @ expected ---------- 2. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 1) static S loadPageWithUserAgentAndTimeout(S url, S userAgent, int timeout) ctex { ^ Syntax error on token "S", = expected after this token ---------- 3. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 1) static S loadPageWithUserAgentAndTimeout(S url, S userAgent, int timeout) ctex { ^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, ( expected instead ---------- 4. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 1) static S loadPageWithUserAgentAndTimeout(S url, S userAgent, int timeout) ctex { ^ Syntax error on token "S", = expected after this token ---------- 5. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 1) static S loadPageWithUserAgentAndTimeout(S url, S userAgent, int timeout) ctex {\r URL tURL = new URL(url); ^^^^^^^^^^^^^ Syntax error on tokens, ( expected instead ---------- 6. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 2) URL tURL = new URL(url); ^ Syntax error on token ")", { expected after this token ---------- 7. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 4) conn.setRequestProperty("User-Agent", userAgent); ^^^^ Syntax error, insert "Identifier (" to complete MethodHeaderName ---------- 8. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 4) conn.setRequestProperty("User-Agent", userAgent); ^^^^ Syntax error, insert ")" to complete MethodDeclaration ---------- 9. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 4) conn.setRequestProperty("User-Agent", userAgent); ^^^^ Syntax error, insert ";" to complete MethodDeclaration ---------- 10. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 4) conn.setRequestProperty("User-Agent", userAgent); ^^^^ Syntax error, insert "}" to complete ClassBody ---------- 11. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 4) conn.setRequestProperty("User-Agent", userAgent); ^ Syntax error on token ";", [ expected ---------- 12. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 5) loadPage_anonymous = true;\r print("loadPage timeout=" + timeout);\r ret loadPage(setURLConnectionTimeouts(conn, timeout), tURL);\r }\r \r sS loadPageWithUserAgentAndTimeout(S url, S userAgent, double timeout) {\r ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 13. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 5) loadPage_anonymous = true;\r print("loadPage timeout=" + timeout);\r ret loadPage(setURLConnectionTimeouts(conn, timeout), tURL);\r }\r \r sS loadPageWithUserAgentAndTimeout(S url, S userAgent, double timeout) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on token(s), misplaced construct(s) ---------- 14. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 5) loadPage_anonymous = true; ^ Syntax error on token ";", [ expected ---------- 15. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 6) print("loadPage timeout=" + timeout);\r ret loadPage(setURLConnectionTimeouts(conn, timeout), tURL); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 16. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 7) ret loadPage(setURLConnectionTimeouts(conn, timeout), tURL);\r }\r \r sS loadPageWithUserAgentAndTimeout(S url, S userAgent, double timeout) { ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Syntax error on tokens, delete these tokens ---------- 17. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 10) sS loadPageWithUserAgentAndTimeout(S url, S userAgent, double timeout) { ^^^ Syntax error on token "url", delete this token ---------- 18. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 10) sS loadPageWithUserAgentAndTimeout(S url, S userAgent, double timeout) { ^^^^^^^^^ Syntax error on token "userAgent", delete this token ---------- 19. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 10) sS loadPageWithUserAgentAndTimeout(S url, S userAgent, double timeout) { ^^^^^^ Syntax error on token "double", delete this token ---------- 20. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 11) ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^^^ Syntax error, insert ". new" to complete ClassInstanceCreationExpressionName ---------- 21. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 11) ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^ Syntax error on token ")", { expected after this token ---------- 22. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 11) ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^ Syntax error, insert "]" to complete ArrayAccess ---------- 23. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 11) ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^ Syntax error, insert ")" to complete Expression ---------- 24. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 11) ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^ Syntax error, insert ")" to complete SingleMemberAnnotation ---------- 25. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 11) ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^ Syntax error, insert "enum Identifier" to complete EnumHeaderName ---------- 26. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 11) ret loadPageWithUserAgentAndTimeout(url, userAgent, (int) fromSeconds(timeout)); ^ Syntax error, insert "EnumBody" to complete CompilationUnit ---------- 27. ERROR in /root/JavaX-Caches/tmp_383572145/main.java (at line 12) } ^ Syntax error, insert "AssignmentOperator Expression" to complete VariableInitializers ---------- 27 problems (27 errors) Options file: /tmp/javax8719651760759170848