Wrote /root/JavaX-Caches/tmp_1482137858/main.java - 1622 bytes (written=1622, should be 1622) 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_93092960 /root/JavaX-Caches/tmp_1482137858/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_1482137858/main.java (at line 1) static abstract class DialogIO implements AutoCloseable { ^^^^^^^^ Illegal modifier for the class DialogIO; only public, abstract & final are permitted ---------- 2. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 4) Lock lock = lock(); ^^^^ Lock cannot be resolved to a type ---------- 3. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 4) Lock lock = lock(); ^^^^ The method lock() is undefined for the type DialogIO ---------- 4. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 10) abstract Socket getSocket(); ^^^^^^ Socket cannot be resolved to a type ---------- 5. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 12) int getPort() { Socket s = getSocket(); ret s == null ? 0 : s.getPort(); } ^^^ Syntax error on token "ret", return expected ---------- 6. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 23) boolean waitForLine() ctex { ^^^^ Syntax error on token "ctex", delete this token ---------- 7. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 40) if (loud) ret askLoudly(s, args); ^^^^ Syntax error, insert ") Statement" to complete IfStatement ---------- 8. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 40) if (loud) ret askLoudly(s, args); ^^^^ Syntax error, insert "}" to complete MethodBody ---------- 9. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 40) if (loud) ret askLoudly(s, args); ^^^ ret cannot be resolved to a type ---------- 10. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 40) if (loud) ret askLoudly(s, args); ^ Syntax error on token ",", delete this token ---------- 11. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 40) if (loud) ret askLoudly(s, args); ^ Syntax error on token ")", { expected after this token ---------- 12. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 49) if (args.length != 0) s = format3(s, args); ^^^^^^^ The method format3(String, Object[]) is undefined for the type DialogIO ---------- 13. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 50) print("> " + shorten(s, shortenOutputTo)); ^^^^^^^ The method shorten(String, int) is undefined for the type DialogIO ---------- 14. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 53) print("< " + shorten(answer, shortenOutputTo)); ^^^^^^^ The method shorten(String, int) is undefined for the type DialogIO ---------- 15. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 59) fail(); ^^^^ The method fail() is undefined for the type DialogIO ---------- 16. ERROR in /root/JavaX-Caches/tmp_1482137858/main.java (at line 65) static abstract class DialogHandler { ^^^^^^^^^^^^^ Illegal modifier for the class DialogHandler; only public, abstract & final are permitted ---------- 16 problems (16 errors) Options file: /tmp/javax15914706126186331861